Hunting Elephants, Comp Sci Style
Next
Guest
Computer scientists hunt elephants using algorithm A:
- Go to Africa
- Start at the Cape of Good Hope
- Work northward in an orderly manner, traversing the continent alternately East and West.
- During each traverse
- a. Catch each animal seen
- b. Compare each animal caught to a known elephant
- c. Stop when a match is detected.
Experienced computer programmers modify Algorithm A by placing a known elephant in Cairo to ensure that the algorithm will terminate.
Comments 0
Log in and tell us what you think — vote, comment and reply to others.
No comments yet. Be the first!