Assignment 2 update.

From: <>
Date: Sat Feb 11 15:16:33 -0500 2006

I've updated my solution to Assignment 2 so it accepts the -s (for
"slow") option, which looks for character encodings without using
speed-ups. I've also included some example word files to illustrate
the difference between fast and slow:

  $ time ./gen-cvals -s < words.1 > /dev/null
    13.71s real 13.70s user 0.00s system

  $ time ./gen-cvals < words.1 > /dev/null
     0.17s real 0.16s user 0.00s system

  $ time ./gen-cvals -s < words.2 > /dev/null
     3.64s real 3.64s user 0.00s system

  $ time ./gen-cvals < words.2 > /dev/null
     0.01s real 0.00s user 0.00s system

  $ time ./gen-cvals -s < words.3 > /dev/null
     1.95s real 1.94s user 0.00s system

  $ time ./gen-cvals < words.3 > /dev/null
     0.01s real 0.01s user 0.00s system

  $ time ./gen-cvals -s < words.4 > /dev/null
    31.54s real 31.53s user 0.00s system

  $ time ./gen-cvals < words.4 > /dev/null
     0.02s real 0.01s user 0.00s system

  $ time ./gen-cvals -s < words.5 > /dev/null
     2.66s real 2.65s user 0.01s system

  $ time ./gen-cvals < words.5 > /dev/null
     0.11s real 0.11s user 0.00s system

Your solution doesn't have to implement the -s option, nor does it
need to match the times shown above.
Received on Sat Feb 11 2006 - 15:16:33 EST

This archive was generated by hypermail 2.2.0 : Tue Mar 21 2006 - 10:28:01 EST