SUNY Geneseo Department of Computer Science
CSci 240, Spring 2007
Prof. Doug Baldwin
Due Friday, March 2
Do each of the following exercises, which involve proving loop invariants or loops' correctness.
n
is a power of 2 and false otherwise. In other words, prove all aspects of the algorithm's correctness, not just the loop invariant.I will grade this exercise in a face-to-face meeting with you. Make an appointment to meet with me at some time convenient for you, as long as that time is before the end of the due date above. Meetings only need to be 15 minutes long. You can make an appointment by signing up on the copy of my schedule on the bulletin board outside my office. Please bring written solutions to each of the exercises to the meeting.