Skip to Content
Python Algorithms: Mastering Basic Algorithms in the Python Language
book

Python Algorithms: Mastering Basic Algorithms in the Python Language

by Magnus Lie Hetland
November 2010
Intermediate to advanced
332 pages
11h 57m
English
Apress
Content preview from Python Algorithms: Mastering Basic Algorithms in the Python Language

Chapter 4. Induction and Recursion ... and Reduction

 

You must never think of the whole street at once, understand? You must only concentrate on the next step, the next breath, the next stroke of the broom, and the next, and the next. Nothing else.

 
 --Beppo Roadsweeper, in Momo by Michael Ende

In this chapter, I lay the foundations for your algorithm design skills. Algorithm design can be a hard thing to teach, because there are no clear recipes to follow. There are some foundational principles, though, and one that pops up again and again is the principle of abstraction. I'm betting you're quite familiar with several kinds of abstraction already—most importantly, procedural (or functional) abstraction and object orientation. Both of these approaches ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Algorithms: Mastering Basic Algorithms in the Python Language, Second Edition

Python Algorithms: Mastering Basic Algorithms in the Python Language, Second Edition

Magnus Lie Hetland

Publisher Resources

ISBN: 9781430232377Purchase book