Chapter 2. The Basics

 

Tracey: I didn't know you were out there.

Zoe: Sort of the point. Stealth—you may have heard of it.

Tracey: I don't think they covered that in basic.

 
 --From "The Message," episode 14 of Firefly

Before moving on to the mathematical techniques, algorithmic design principles, and classical algorithms that make up the bulk of this book, we need to go through some basic principles and techniques. When you start reading the following chapters, you should be clear on the meaning of phrases such as "directed, weighted graph without negative cycles" and "a running time of

The Basics

Luckily, these basic ideas aren't at all hard to grasp. The main ...

Get Python Algorithms: Mastering Basic Algorithms in the Python Language now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.