RU beehive logo ITEC dept promo banner
ITEC 122
2007fall
ibarland

homeinfolectureshwsexams

hw11
counting, concluded
reading about grammars

  1. First, look at some sites like tinyurl.com or snurl.com which take long URLs and create new short names for them. You might wonder how quickly such sites will run out of short names.

    1. How many different characters does the site choose from, when generating shortened-URLs? (More than 26, as a-z are all used, as well as ...?) If you need to generate one or two short-URLs, go ahead.
    2. How many possible shortened-URLs have length exactly1 6?
    3. How many possible shortened-URLs have length 6 or less?
    4. If there are 1010 static web pages, and every single one of them were registered on such a site, how long would be the longest small URL be? (Just count the encoded part of the name, without the initial ``http://www.snurl.com/'' prefix.)

    5. We might then start to wonder, is 1010 a reasonable upper estimate on the number of web pages? After all, one of the best use of these sites is for abbreviating dynamic URLs which contain (long) queries embedded inside them (e.g. mapquest URLs). So we'll ask the same question, but now suppose that 1010 people each generate one dynamic request per second, for 1010sec (about 320 years — e.g. since William of Orange took the English throne in 1688). How long will the longest short-URLs be now?

    6. To think about to yourself:
      Does one of these sites do a better job than the other? Which do you prefer?

  2. p.344, #30a-e (5ed, p.310 #28a-e): alphabet soup
  3. p. 361 #18 (5ed, p.324 #18): flipping eight coins
  4. p. 369 #9 variant (5ed, p.333 #9, variant)
    1. What is the coefficient of x101y99 in the expansion of (x+y)200?
    2. What is the coefficient of u101v99 in the expansion of (3u-2v)200?
  5. p.398, #4 (5ed p.360, #4) Remember: divide the number of "desired" outcomes by the number of possible outcomes.
    (We presume that each day is equally likely, out of the 366 possibilities).
  6. p.398, #6 (5ed p.360, #6) When counting desired outcomes, be sure not to accidentally count the ace of hearts twice!
  7. p.398, #8 (5ed p.361, #8)
  8. Reading:
  9. (5ed p.749, #4ab).
    As mentioned in the reading, “S→AB” means “you can replace the substring "S" with the substring "AB"”; the question asks you to keep making substitutions until you only have lower-case letters (“terminals”).

1length 6, counting only the part after the domain name and the following slash, of course.      

homeinfolectureshwsexams


©2007, Ian Barland, Radford University
Last modified 2007.Nov.27 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme