bupticybee / TexasSolver

🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:
https://bupticybee.github.io/texassolver_page
GNU Affero General Public License v3.0
1.65k stars 294 forks source link

Understanding the card5_dic_sorted.txt file #124

Closed silentdiverchris closed 1 year ago

silentdiverchris commented 1 year ago

A query rather than an issue really, but I'm trying to get my head around what the 2.6 million lines in this file are. At first I assumed it was all possible 5 card boards but 52x51x50x49x48 is 311 million, not 2.6 million so surely it can't be all possible boards, so what is that set / the inclusion criteria for it ?

Deep poker strategy isn't exactly my field so please excuse my ignorance, but if somebody could tell me what those 2.6 million lines represent, where my maths is wrong or whatever else it is I'm not understanding; I'd appreciate it, thanks.

yffbit commented 1 year ago

should be combination C(52,5) rather than permutation A(52,5)

silentdiverchris commented 1 year ago

should be combination C(52,5) rather than permutation A(52,5)

Thanks, could you expand on that a little please ?

yffbit commented 1 year ago

A(52,5)=52*51*50*49*48 C(52,5)=52*51*50*49*48/(5*4*3*2*1) the strength of different permutations of 5 cards are same

silentdiverchris commented 1 year ago

Oh of course, removing the cases where the cards are the same but the order is different. That explains the 2.6 million / 131 million discrepancy. Thank you.

bupticybee commented 1 year ago

A(52,5)=5251504948 C(52,5)=5251504948/(54321) the strength of different permutations of 5 cards are same

Thanks very much for the explain.