Given the following array:
8 | 9 | 98 | 52 | 29 | 30 | 78 | 1 |
and for each of the following sorts:
do the following:
Consider the task of searching a UNIX filesystem for a file. Suppose you have access only to the commands ls and cd. How could you find the file, making sure you search every directory?
(Hint: assume the file is named cheese.txt).
When you have found the file, how could you trace a path through the filesystem back to the root directory? Suppose you were halfway back to the root. Given the choices of moving to fred, .., or alice, which would be the best choice?