Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2007, 01:10 PM
Mogobu The Fool Mogobu The Fool is offline
Senior Member
 
Join Date: Sep 2005
Location: On teh internets.
Posts: 617
Default Re: 7 Card Hand Evaluators

[ QUOTE ]
I'm assuming the only benefit to using the perfect hash version faster lookup creation? (I just used Cactus Kev's source).


[/ QUOTE ]

No, the perfect hash version's advantage comes from faster actual lookups... The last step in Cactus Kev's approach, after using the product of primes to establish a unique code which represnts any version of a 7-card holding, is to look up that product in a table. In Cactus Kev's code, the lookup is done via binary search. In Senzee's version, doing a hash and lookup is considerable faster on average - resulting in evals about 2.7 times faster in Senzee's tests.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.