Posted by hussein on July 24, 1999 at 02:10:29:
In Reply to: Proj3 questions posted by Pete Schoenhoff on July 23, 1999 at 23:12:13:
: ...1) You said in class that all functions should
: operate on the root directory, but your sample
: output suggests that it is working on the current
: directory instead. I would also be very surprised
: if the TA's wanted to look through the entire file
: structure of my hard drive to grade my output file.
: Can we have searches and tree visualizations begin
: at the CWD instead of the root?
i was referring to a "relative root" ... ie, considering the directory in which we start searching to be the root for subsequent operations ...
: ...2) It took most of the day to figure out exactly
: what your code was doing, but I still am confused on
: one point: In your output file listing, what do the
: trailing tildes represent after filenames? Is that
: a UNIX flag?
its just a regular character in the filename ... "joe", the text editor i use in unix, appends it to backup files ...
: ...3) If adding a creative feature costs efficiency,
: will we be downgraded or upgraded?
efficiency is always more important ... of course sometimes, u have to make compromises, but favor efficiency as far as possible ...
: ...4) Did you say that non-recursive work is okay,
: even when recursion would be the obvious solution?
yes, its ok to do it non-recursively ... its just that i dont think some aspects of the project can be written non-recursively unless you employ a secondary data structure (like a stack or queue) ...
---
hussein