This preview shows pages 1–6. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: IE 495 Lecture 4 September 7, 2000 Reading for this lecture Primary Miller and Boxer, Chapters 2 and 3 Aho, Hopcroft, and Ullman, Sections 2.52.9 Induction and Recursion Mathematical Induction Induction is a technique for proving statements about consecutive integers. Principle of Mathematical Induction Let P(n) be a predicate that we want to prove TRUE for all positive n. Method: 1. Prove P (1). 2. Prove P(k) P(k+1) 2200 k 1. Example: Prove What does induction have to do with programming? i 1 n i n n 1 2 Recursion Definition (Mathematics) : An expression, each term of which is determined by application of a formula to the preceding terms. In CS, a function that calls itself is called recursive . Recursion allows us to process large data sets based on our knowledge of smaller ones. The correctness and complexity of recursive algorithms can be proven by induction....
View Full
Document
 Fall '08
 Linderoth
 Operations Research

Click to edit the document details