
As an Amazon Associate and affiliate partner, Menrva Books earns from qualifying purchases. Learn more
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 practica
This book explores the fundamental mathematical principles underlying generic programming and abstraction. Alexander Stepanov, a pioneer in software design, along with Daniel Rose, aims to equip proficient programmers with the knowledge to write simpler and more powerful code. The authors introduce abstract algebra and number theory with clarity, detailing how mathematical solutions translate into programming concepts. They demonstrate the practical application of these principles through the implementation of a public-key cryptosystem, showcasing how to generalize algorithms for wider use without sacrificing efficiency.
The book is presented as a substantive yet accessible guide for programmers seeking to understand the mathematical underpinnings of generic programming. It is designed for those with logical thinking capabilities, introducing relevant abstract algebra and number theory with clarity. The authors demonstrate how mathematical solutions can be translated into more effective and elegant code, with a practical example of a public-key cryptosystem. The text aims to impart valuable insight into the connection between mathematics and programming, applicable across various languages and paradigms.
Page Count:
320
Publication Date:
2014-07-10
Publisher:
Addison-Wesley
ISBN-10:
013349179X
ISBN-13:
9780133491791
No comments yet. Be the first to share your thoughts!