Actually reminds me of being a TA. One of the amazing things about the average computer user (and even, apparently, CS freshmen at Berkeley) is that they have little conception just how *fast* a 'fast' computer is.
For example, we asked them to write a program to sort 100 strings. Many students' programs took at least several seconds (and not including startup, file I/O, or anything else -- just the algorithm). One student's program took a full _minute_.
The next discussion section started off with something like: "Imagine if someone wrote down the directions to a complicated task, one per line, on a sheet of paper. Now imagine there are a *hundred billion* instructions. How big would that stack of paper be?"
A 1.2GHz TBird can blow through probably 10 billion instructions in 20 seconds. That's about 170 million instructions per card.
Not saying I haven't done things much more spectacularly bad, just that inefficient algorithms are, in their own way, sort of fun to think about...
For example, we asked them to write a program to sort 100 strings. Many students' programs took at least several seconds (and not including startup, file I/O, or anything else -- just the algorithm). One student's program took a full _minute_.
The next discussion section started off with something like: "Imagine if someone wrote down the directions to a complicated task, one per line, on a sheet of paper. Now imagine there are a *hundred billion* instructions. How big would that stack of paper be?"
A 1.2GHz TBird can blow through probably 10 billion instructions in 20 seconds. That's about 170 million instructions per card.