|
|
Due 04.Apr.13 (Tue) 17:00.
Before you tackle the homework, remind yourself of our general hw policies.
Reading: Rosen 4.1-4.4.
(0pts)
For fun/thought, not to turn in.
Visit tinyurl.com or
snurl.com.
If there are 1010 static web pages,
and every single one of them were registered on such a site,
what how long would be
the longest small URL be?
Does one of these sites do a better job than the other?
Which do you prefer?
This of course leads to question our assumptions: Is 1010 a reasonable upper estimate? How about dynamic URLs -- that is, ones which have a hashed form of the query encoded in them, and the server decodes the question to serve up a specific answer (e.g. mapquest). Can you reasonably bound the possible number of mapquest answers? How about, the number of dynamic URLs that may have been issued in the history of the web?
¹ This number is based on looking at /usr/dict/words on some standard UNIX releases, which contains 3877, 4072, and 3621 words of length 6,7,8 resp. (back)
² This approach is used by AOL, though their counting might be somewhat suspect: in the past, they've offered 700 free hours to be used within a month; some months don't even have 700 hrs! It makes one wonder whether this marketing is really better than just offering something like "first month free" (and if so, why?). (back)
3 An explanation of why a less-accurate answer might be considered more correct:
When there's noise/assumptions in the input, the output is inaccurate, and implying accuracy that isn't there should be avoided. Like bad sci-fi movies that I loved as a kid: "the medical doctors say the tribe of dolphin-parakeets will die if their planet's temperature goes above 132.4 degrees!", and the heroes manage to fix the A/C just as the temperature climbs to 132.2 degrees, whew.
Given the problem was making gross estimates anyway (and, unless remembering details, like that a year is a tad longer than 365.24 days) that's why answers with more than a couple of digits of accuracy are less correct.
Not that this is an issue we've explored at all in this class. so that bounds could be propogated through to include in the answer.) (A more rigourous treatment would give error bounds to all inputs, so that bounds could be propogated through to include in the answer.) (back)
|
|
| Comp280 Home | Please notify us of any broken links, etc. | Last modified 2004.Apr.30. |