CS100A Lecture 15

10/19/99

Click here to start

Table of Contents

CS100A Lecture 15

Search in a Sorted Array

Example

Loop Pattern

Loop Invariant

Initial and Final Conditions

Initialization and Termination

Specify the Body

Refine the Body: Even length case

Refine the Body: Odd length case

Refine the Body

Conditional Expressions

Final Program

Asymptotic Complexity

Author: Tim Teitelbaum

Download presentation source