Initial and Final Conditions
Rule of Thumb, continued
- Characterize the initial and final states, i.e., the state before the iteration begins and after the iteration is expected to stop.
- The characterization of the initial and final states should be special cases of the general characterization.
If val occurs in A[0..N], then val occurs in the