Help for this page

Select Code to Download


  1. or download this
    c:\test>774421-2
    Using words: 44501
    Using numbers: 40801
    
  2. or download this
    Numbers array: 12776
    Lookup hash:   8860
    
  3. or download this
    Lookup words:   0.000440120697021484 seconds
    Lookup numbers: 0.000699043273925781 seconds
    ...
    Lookup words:   0.000285863876342773 seconds
    Lookup numbers: 0.000767946243286133 seconds
    Lookups words: 515; numbers:515
    
  4. or download this
    #! perl -sw
    use 5.010;
    ...
    and composing your key out of the integers rather than the word string
    +s
    as you are doing now. Keys composed out of numerical indexes
    would save space and possibly search time.