|
|
||
| 1. Algorithm representation |
|
|
|
||
|
|
||
| 3. Types of statements, cont'd |
|
|
|
||
|
|
||
| 4. Types of statements, cont'd |
|
|
|
||
|
|
||
| 5. Example 1 |
|
|
|
||
|
|
||
| 6. Example 2 |
|
|
|
||
|
|
||
| 7. Two sides of the coin ... |
|
|
|
||
|
|
||
| 8. Search problem statement |
|
|
|
||
|
|
||
| 9. First sequential search - p.38 |
|
|
|
||
|
|
||
| 10. This is very bad! |
|
|
|
||
|
|
||
| 11. 2nd sequential search - p.39 |
|
|
|
||
|
|
||
| 12. This is even worse! |
|
|
|
||
|
|
||
| 13. How do we fix things? - p.40 |
|
|
|
||
|
|
||
| 14. Sequential search |
|
|
|
||