SUNY Geneseo Department of Computer Science


Another Induction Example

{Date}

CSci 141, Fall 2003
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Misc

I'm out of town Friday (Oct. 3)

Lab 6 handout will be available in lab tomorrow

Exam 1 is next Friday (Oct. 10)

Questions?

Homework and test files:

Induction and non-math algorithms

    forwardAndBack( n )
        if n > 0
            this.move()
            this.forwardAndBack( n-1 )
            this.move()
        else
            this.turnLeft()
            this.turnLeft()

[Number Tiles w/ Positive Numbers in Front of Robot, Negative Behind]

Proof about halfWayBack

[Induction Variable is Distance to Wall]


Next Lecture