Python算法设计篇(1) Chapter 1: Introduction

1. Write down the problem.
2. Think real hard.
3. Write down the solution.
—— “The Feynman Algorithm” as described by Murray Gell-Mann

1.关于这本书的目的

[实际阅读之后，我个人感觉这本书虽然名声不大，但是绝对可以和算法导论平分秋色]

2.这本书关于什么？

• Algorithm analysis, with a focus on asymptotic running time
• Basic principles of algorithm design
• How to represent well-known data structures in Python
• How to implement well-known algorithms in Python

What the book covers only briefly or partially:
• Algorithms that are directly available in Python, either as part of the language or via the standard library
• Thorough and deep formalism (although the book has its share of proofs and proof-like explanations)

3.为什么我们需要学习算法呢？

`python
from time import *
t0=time()
count=10**5
nums=[]
for i in range(count):
nums.append(i)