BBO Discussion Forums: well that deal generator - BBO Discussion Forums

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

well that deal generator Jjust curious dont know why

#1 User is offline   Gottis 

  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 2006-October-05

Posted 2011-September-05, 12:23

This thing that deal holdings on BBO. While it locates all the possible deals that can be made, some number with 28 zeros. Can it produce 2 identical holdings before it have wandered around and emtyed all possible deals. Curious for some reason I dont know. Guess I want to impress some on my bridge-partner sigh B-)
0

#2 User is offline   BunnyGo 

  • Lamentable Bunny
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,505
  • Joined: 2008-March-01
  • Gender:Male
  • Location:Portland, ME

Posted 2011-September-05, 12:30

I don't understand your question. If you are asking:

"Can the hand generator on BBO repeat a hand before having every possible hand comes up?"

I can say (even without knowing a thing about how it is being precisely implemented) that the answer is 100% yes. Not only *can* it happen, it *will* happen with 100% certainty (well, not 100%, but it is better odds than 1:(number of particles in the universe)^(number of particles in the universe) by a lot! It's not even close.)

I hope this answered your question.
Bridge Personality: 44 44 43 34

Never tell the same lie twice. - Elim Garek on the real moral of "The boy who cried wolf"
1

#3 User is offline   Gottis 

  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 2006-October-05

Posted 2011-September-05, 12:34

View PostBunnyGo, on 2011-September-05, 12:30, said:

I don't understand your question. If you are asking:

"Can the hand generator on BBO repeat a hand before having every possible hand comes up?"

I can say (even without knowing a thing about how it is being precisely implemented) that the answer is 100% yes. Not only *can* it happen, it *will* happen with 100% certainty (well, not 100%, but it is better odds than 1:(number of particles in the universe)^(number of particles in the universe) by a lot! It's not even close.)

I hope this answered your question.

Tx Sir I will trust you, unless ......lol
0

#4 User is offline   diana_eva 

  • PipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 5,167
  • Joined: 2009-July-26
  • Gender:Female
  • Location:bucharest / romania

Posted 2011-September-05, 12:53

View PostGottis, on 2011-September-05, 12:23, said:

This thing that deal holdings on BBO. While it locates all the possible deals that can be made, some number with 28 zeros. Can it produce 2 identical holdings before it have wandered around and emtyed all possible deals. Curious for some reason I dont know. Guess I want to impress some on my bridge-partner sigh B-)


Are you referring to hands randomly generated?

#5 User is offline   Gottis 

  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 2006-October-05

Posted 2011-September-05, 13:23

View Postdiana_eva, on 2011-September-05, 12:53, said:

Are you referring to hands randomly generated?

I guess so,..randomly sounds as wild picking if then yes
0

#6 User is offline   Free 

  • mmm Duvel
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 10,728
  • Joined: 2003-July-30
  • Gender:Male
  • Location:Belgium
  • Interests:Duvel, Whisky

Posted 2011-September-05, 13:57

Not sure what the algorithm is, but if it wouldn't generate at least 1 hand twice before having generated all possible deals, then it would be a poor (pseudo)randomizer. I'm confident Fred and his crew are smarter than that. ;)

A better question would be if it's possible to generate all hands before the world ends (and I don't mean 2012)...
"It may be rude to leave to go to the bathroom, but it's downright stupid to sit there and piss yourself" - blackshoe
0

#7 User is offline   BunnyGo 

  • Lamentable Bunny
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,505
  • Joined: 2008-March-01
  • Gender:Male
  • Location:Portland, ME

Posted 2011-September-05, 14:18

View PostFree, on 2011-September-05, 13:57, said:

A better question would be if it's possible to generate all hands before the world ends (and I don't mean 2012)...


Well, here's a list of likely ways the world will end. I'll pick a "sure thing" one in that the sun's gonna give up in about 5 billion years.


We'd need to be producing 336,123,795,000 hands a second to succeed (if we have no repeats). Good luck!
Bridge Personality: 44 44 43 34

Never tell the same lie twice. - Elim Garek on the real moral of "The boy who cried wolf"
0

#8 User is offline   Gottis 

  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 2006-October-05

Posted 2011-September-05, 15:09

View PostBunnyGo, on 2011-September-05, 14:18, said:

Well, here's a list of likely ways the world will end. I'll pick a "sure thing" one in that the sun's gonna give up in about 5 billion years.


We'd need to be producing 336,123,795,000 hands a second to succeed (if we have no repeats). Good luck!

It is for me totally unbelivable,..guess its true but nevertheless I dont belive it,...just 52 cards.... Think this is intresting for those who read this and not before been thinking about these shocking total sums,..when trying to promote bridge I often talk about that 28 zero number. Oh well
0

#9 User is offline   Siegmund 

  • Alchemist
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,764
  • Joined: 2004-June-15
  • Gender:Male
  • Location:Beside a little lake in northwestern Montana
  • Interests:Creator of the 'grbbridge' LaTeX typesetting package.

Posted 2011-September-05, 16:47

I expect the answer is yes, since I expect a garden variety pseudorandom number generator is being used.

It's actually an interesting programming problem to achieve the opposite effect, sampling without replacement -- one way to do it is with things called quasirandom numbers rather than pseudorandom numbers -- and if the number of hands were merely billions or trillions, it would be quite useful to be able to get a 'fast' Monte Carlo estimate for how common something was, that turned into an enumeration if allowed to run for awhile.
0

#10 User is offline   TylerE 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,772
  • Joined: 2006-January-30

Posted 2011-September-05, 21:31

Free: Couldn't disagree more. Would you trust a computerized set of dice that *never* rolled double 6's 10 times in a row? Sacrificing ACTUAL randomness for APPARENT randomness is one of the worse traits a RNG could have.
0

#11 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 22,044
  • Joined: 2004-August-21
  • Gender:Male

Posted 2011-September-05, 22:00

TylerE, I think you're agreeing with Free, not disagreeing.

A more interesting question about a hand dealer is whether it can potentially deal every possible hand or not, or if there are some hands that it might never deal.

#12 User is offline   Free 

  • mmm Duvel
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 10,728
  • Joined: 2003-July-30
  • Gender:Male
  • Location:Belgium
  • Interests:Duvel, Whisky

Posted 2011-September-06, 01:48

View PostTylerE, on 2011-September-05, 21:31, said:

Free: Couldn't disagree more. Would you trust a computerized set of dice that *never* rolled double 6's 10 times in a row? Sacrificing ACTUAL randomness for APPARENT randomness is one of the worse traits a RNG could have.

This is not a matter of trust, it's just facts. You either choose a true RNG which doesn't contain any flaws if it's truely random, or a pseudo RNG which obviously has some (minor) flaws. But I'd rather use a PRNG that rolls double 6's maximum 9 times in a row but has great characteristics otherwise, than a PRNG that needs to roll every other combination first before it can roll double 6's again (whatever other characteristics it has).
"It may be rude to leave to go to the bathroom, but it's downright stupid to sit there and piss yourself" - blackshoe
0

#13 User is offline   Free 

  • mmm Duvel
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 10,728
  • Joined: 2003-July-30
  • Gender:Male
  • Location:Belgium
  • Interests:Duvel, Whisky

Posted 2011-September-06, 01:50

View PostBunnyGo, on 2011-September-05, 14:18, said:

Well, here's a list of likely ways the world will end. I'll pick a "sure thing" one in that the sun's gonna give up in about 5 billion years.

We'd need to be producing 336,123,795,000 hands a second to succeed (if we have no repeats). Good luck!

Will be easy for quantum computers. Hopefully we'll invent one within 5 billion years. :D
"It may be rude to leave to go to the bathroom, but it's downright stupid to sit there and piss yourself" - blackshoe
0

#14 User is offline   BunnyGo 

  • Lamentable Bunny
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,505
  • Joined: 2008-March-01
  • Gender:Male
  • Location:Portland, ME

Posted 2011-September-06, 09:58

View PostFree, on 2011-September-06, 01:50, said:

Will be easy for quantum computers. Hopefully we'll invent one within 5 billion years. :D


Why would it be easy for quantum computers? AFAIK they can only search through lists and factor better than normal computers...this exhaust would actually be slower on one.
Bridge Personality: 44 44 43 34

Never tell the same lie twice. - Elim Garek on the real moral of "The boy who cried wolf"
0

#15 User is offline   Flameous 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 475
  • Joined: 2008-March-07
  • Gender:Male
  • Location:Oulu, Finland
  • Interests:How to find out shape below 2NT.

Posted 2011-September-06, 11:39

Quote

We'd need to be producing 336,123,795,000 hands a second to succeed (if we have no repeats). Good luck!


We are trying to get some new players tomorrow at the university. I'll be sure to bring up this point :)

Can't claim that the game is boring if it takes that long to go through all the deals.
0

#16 User is offline   billw55 

  • enigmatic
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,757
  • Joined: 2009-July-31
  • Gender:Male

Posted 2011-September-06, 12:07

In this context, "hands" and "deals" are very different things.

The number of "hands" is simply 52 choose 13, which is 6.35 x1011. If we generate 1000 per second with no duplication, we can get them all in about 20 years.

The number of "deals" is immensely larger, and I am not quickly sure how to figure it up.
Life is long and beautiful, if bad things happen, good things will follow.
-gwnn
0

#17 User is offline   BunnyGo 

  • Lamentable Bunny
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,505
  • Joined: 2008-March-01
  • Gender:Male
  • Location:Portland, ME

Posted 2011-September-06, 12:15

View Postbillw55, on 2011-September-06, 12:07, said:

In this context, "hands" and "deals" are very different things.

The number of "hands" is simply 52 choose 13, which is 6.35 x1011. If we generate 1000 per second with no duplication, we can get them all in about 20 years.

The number of "deals" is immensely larger, and I am not quickly sure how to figure it up.


A good point, I was discussing "deals".
Bridge Personality: 44 44 43 34

Never tell the same lie twice. - Elim Garek on the real moral of "The boy who cried wolf"
0

#18 User is offline   Antrax 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,458
  • Joined: 2011-March-15
  • Gender:Male

Posted 2011-September-06, 12:43

The number of deals is easy: permute the 52 cards, then factor out rearrangements within a hand and rotations.
Not sure I understood the discussion on PRNGs. I don't think anyone's hand-writing heuristics to generate randomness.
0

#19 User is offline   wyman 

  • Redoubling with gusto
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,712
  • Joined: 2009-October-19
  • Gender:Male
  • Location:Las Vegas, NV
  • Interests:Math, Bridge, Beer. Often at the same time.

Posted 2011-September-06, 12:53

View PostAntrax, on 2011-September-06, 12:43, said:

The number of deals is easy: permute the 52 cards, then factor out rearrangements within a hand and rotations.
Not sure I understood the discussion on PRNGs. I don't think anyone's hand-writing heuristics to generate randomness.


Why not just choose 13 for N, choose 13 for S, and choose 13 for E?

52C13 * 39C13 * 26C13
"I think maybe so and so was caught cheating but maybe I don't have the names right". Sure, and I think maybe your mother .... Oh yeah, that was someone else maybe. -- kenberg

"...we live off being battle-scarred veterans who manage to hate our opponents slightly more than we hate each other.” -- Hamman, re: Wolff
0

#20 User is offline   hrothgar 

  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 15,724
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Natick, MA
  • Interests:Travel
    Cooking
    Brewing
    Hiking

Posted 2011-September-06, 12:55

FWIW, most of the standard random number generators in common use have dead zones.

There are certain outputs that do not get generated.
Alderaan delenda est
0

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users