SUNY Geneseo Department of Computer Science


Induction and Algorithms, Part 1

{Date}

CSci 240, Spring 2007
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

Problem set 4 due today

Phi Beta Kappa Lecture

Questions?

Induction - how to algebraically get final result in induction step?

Reasoning about Recursion

Section 7.1.2

Example

        printDown( n )
        if n > 0
            print n
            printDown( n - 1 )
        else
            print 0

Hand out problem set 5

Next

Keep applying induction to recursive algorithms


Next Lecture