Design and Analysis of Algorithms: by Cormen, Leiserson, Riverst and Stein (CLRS) MIT Press
Design and Analysis of Algorithms: by Cormen, Leiserson, Riverst and Stein (CLRS) MIT Press
Introduction
Huo Hongwei
Textbook: Introduction to Algorithms, 2nd edition, by T. H. Cormen, C. E. Leiserson, R. L. Rivest and C. Stein. The MIT Press, 2001. (20025) Grading Policy: Homework + Projects : 40% Final Exam: 60%
Huo Hongwei
Analysis of algorithms
The theoretical study of computer-program performance and resource usage. Whats more important than performance?
modularity correctness maintainability functionality robustness user-friendliness programmer time simplicity extensibility reliability
3
Huo Hongwei
Huo Hongwei
Huo Hongwei
Algorithm matters
Sort 10 million integers on 1 GHZ computer (1000 million instruction per second) using 2n2 algorithm 100 MHz computer (100 million instruction per second) using 50nlog n algorithm Supercomputer 2(107)2 instructions = 200000 seconds 55 hours, 9 10 instructions/second Personal computer 50107 lg107 instructions 105 seconds. 8 10 instructions/second
Huo Hongwei 6
Some Applications
data retrieval network routing games human genome project Internet algorithms electronic commerce manufacturing and other commercial settings many concrete problems
Huo Hongwei
and today
ACGTGACTGAGGACCGTG CGACTGAGACTGACTGGGT CTAGCTAGACTACGTTTTA TATATATATACGTCGTCGT ACTGATGACTAGATTACAG ACTGATTTAGATACCTGAC TGATTTTAAAAAAATATT
Huo Hongwei 8
Huo Hongwei
Evolution
Huo Hongwei
10
Huo Hongwei
11
Huo Hongwei
12
Huo Hongwei
13
Huo Hongwei
14
Huo Hongwei
15