We don't bite newbies here... much | |
PerlMonks |
Re^2: Bidirectional lookup algorithm? (try perfect hashing)by oiskuu (Hermit) |
on Jan 13, 2015 at 02:21 UTC ( [id://1113021]=note: print w/replies, xml ) | Need Help?? |
Ok. Here's a crude demo in case someone is interested in doing benchmarking comparisons or whatever. The program is pure C, tested on linux 64-bit. Give two arguments: Nkeys and Filename. File should contain sym-value pairs, both unique in their domains. (Space-separated, one pair per line). <Reveal this spoiler or all in this thread>
Update. Some additional notes regarding the program.
Portability is easily improved upon:
In Section
Seekers of Perl Wisdom
|
|