In this substantive yet accessible book, pioneering software designer Alexander Stepanov and his colleague Daniel Rose illuminate the principles of generic programming and the mathematical concept of abstraction on which it is based, helping you write code that is both simpler and more powerful.
If you're a reasonably proficient programmer who can think logically, you have all the background you'll need. Stepanov and Rose introduce the relevant abstract algebra and number theory with exceptional clarity. They carefully explain the problems mathematicians first needed to solve, and then show how these mathematical solutions translate to generic programming and the creation of more effective and elegant code. To demonstrate the crucial role these mathematical principles play in many modern applications, the authors show how to use these results and generalized algorithms to implement a real-world public-key cryptosystem.
As you read this book, you'll master the thought processes necessary for effective programming and learn how to generalize narrowly conceived algorithms to widen their usefulness without losing efficiency. You'll also gain deep insight into the value of mathematics to programming–insight that will prove invaluable no matter what programming languages and paradigms you use.
You will learn about
- How to generalize a four thousand-year-old algorithm, demonstrating indispensable lessons about clarity and efficiency
- Ancient paradoxes, beautiful theorems, and the productive tension between continuous and discrete
- A simple algorithm for finding greatest common divisor (GCD) and modern abstractions that build on it
- Powerful mathematical approaches to abstraction
- How abstract algebra provides the idea at the heart of generic programming
- Axioms, proofs, theories, and models: using mathematical techniques to organize knowledge about your algorithms and data structures
- Surprising subtleties of simple programming tasks and what you can learn from them
- How practical implementations can exploit theoretical knowledge
Alexander A. Stepanov has been programming since 1972–first in the Soviet Union and, since emigrating in 1977, in the United States. He has programmed operating systems, programming tools, compilers, and libraries. His work on the foundations of programming has been supported by GE, Polytechnic University, Bell Labs, HP, SGI, Adobe, and, since 2009, A9.com, Amazon's search subsidiary. In 1995, he received the Dr. Dobb's Journal Excellence in Programming Award for the design of the C++ Standard Template Library.
Daniel E. Rose is a research scientist who has held management positions at Apple, AltaVista, Xigo, Yahoo, and A9.com. His research focuses on all aspects of search, ranging from low-level algorithms for index compression to human—computer interaction. Rose led the Apple team that created desktop search for the Mac. He holds a Ph.
D. in cognitive science and computer science from the University of California, San Diego, and a B.A. in philosophy from Harvard.
To view this DRM protected ebook on your desktop or laptop you will need to have Adobe Digital Editions installed. It is a free software. We also strongly recommend that you sign up for an AdobeID at the Adobe website. For more details please see FAQ 1&2. To view this ebook on an iPhone, iPad or Android mobile device you will need the Adobe Digital Editions app, or BlueFire Reader or Txtr app. These are free, too. For more details see this article.
|Size: ||2.9 MB|
|Publisher: ||Addison-Wesley Professional|
|Date published: || 2014|
|ISBN: ||9780133491784 (DRM-EPUB)|
|Copying:||of 30 selections every 30 days allowed|
|Printing:||of 30 pages every 30 days allowed|
|Read Aloud: ||allowed|
|This ebook will NOT be sold to customers with a billing address in:|
|Afghanistan, Algeria, Belarus, Bosnia and Herzegowina, Congo, Congo (The Democratic Republic of the), Cote D'Ivoire, Cuba, Indonesia, Iran (Islamic Republic of), Iraq, Korea (Democratic People's Republic of), Liberia, Libyan Arab Jamahiriya, Macedonia (The Former Yugoslav Republic of), Myanmar, Nigeria, Sudan, Syrian Arab Republic, Zimbabwe|