Number of Legal 19x19 positions calculated
-
Uberdude
- Judan
- Posts: 6727
- Joined: Thu Nov 24, 2011 11:35 am
- Rank: UK 4 dan
- GD Posts: 0
- KGS: Uberdude 4d
- OGS: Uberdude 7d
- Location: Cambridge, UK
- Has thanked: 436 times
- Been thanked: 3718 times
Number of Legal 19x19 positions calculated
I just saw that John Tromp has announced the number of legal 19x19 board positions as:
208168199381979984699478633344862770286522453884530548425639456820927419612738015378525648451698519643907259916015628128546089888314427129715319317557736620397247064840935
See http://tromp.github.io/go/legal.html for more.
208168199381979984699478633344862770286522453884530548425639456820927419612738015378525648451698519643907259916015628128546089888314427129715319317557736620397247064840935
See http://tromp.github.io/go/legal.html for more.
-
DrStraw
- Oza
- Posts: 2180
- Joined: Tue Apr 27, 2010 4:09 am
- Rank: AGA 5d
- GD Posts: 4312
- Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
- Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
- Has thanked: 237 times
- Been thanked: 662 times
- Contact:
Re: Number of Legal 19x19 positions calculated
Interesting but it does get me too excited. It is about as useful as calculating pi to more than 100 digits.
Still officially AGA 5d but I play so irregularly these days that I am probably only 3d or 4d over the board (but hopefully still 5d in terms of knowledge, theory and the ability to contribute).
- RBerenguel
- Gosei
- Posts: 1585
- Joined: Fri Nov 18, 2011 11:44 am
- Rank: KGS 5k
- GD Posts: 0
- KGS: RBerenguel
- Tygem: rberenguel
- Wbaduk: JohnKeats
- Kaya handle: RBerenguel
- Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
- Location: Barcelona, Spain (GMT+1)
- Has thanked: 576 times
- Been thanked: 298 times
- Contact:
Re: Number of Legal 19x19 positions calculated
DrStraw wrote:Interesting but it does get me too excited. It is about as useful as calculating pi to more than 100 digits.
Mathematics is about expanding knowledge, you should know that.
Geek of all trades, master of none: the motto for my blog mostlymaths.net
-
Uberdude
- Judan
- Posts: 6727
- Joined: Thu Nov 24, 2011 11:35 am
- Rank: UK 4 dan
- GD Posts: 0
- KGS: Uberdude 4d
- OGS: Uberdude 7d
- Location: Cambridge, UK
- Has thanked: 436 times
- Been thanked: 3718 times
Re: Number of Legal 19x19 positions calculated
I was indeed surprised a mathematician such as DrStraw would complain about lack of usefulness, but then maybe he is a grumpy old man first and a mathematician second
.
P.S. I don't think there's many instances where you'd need pi to even that precision. IIRC you need about 40 digits to calculate the size of the observable universe to the accuracy of an atom, so unless you were calculating something with powers of pi (which is not so common) to increase the error then 100 is more than you need.
P.S. I don't think there's many instances where you'd need pi to even that precision. IIRC you need about 40 digits to calculate the size of the observable universe to the accuracy of an atom, so unless you were calculating something with powers of pi (which is not so common) to increase the error then 100 is more than you need.
-
gowan
- Gosei
- Posts: 1628
- Joined: Thu Apr 29, 2010 4:40 am
- Rank: senior player
- GD Posts: 1000
- Has thanked: 546 times
- Been thanked: 450 times
Re: Number of Legal 19x19 positions calculated
Obviously the value of this lies in the methods used, not in knowing the particular number. I was interested to see that they define a valid position as one in which every chain of stones of one color is adjacent to an empty point. It's not clear to me that every such position could actually arise as a result of a sequence of valid moves starting with an empty board. It seems more interesting to me to count how many actual game positions there could be.
-
RobertJasiek
- Judan
- Posts: 6272
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: Number of Legal 19x19 positions calculated
gowan wrote:I was interested to see that they define a valid position as one in which every chain of stones of one color is adjacent to an empty point. It's not clear to me that every such position could actually arise as a result of a sequence of valid moves starting with an empty board.
Trivial. Alternate to play the upper left most stone in the position to be constructed. If a player has played all his stones in that position, he passes. During the construction sequence, each string has at least one liberty because a) it has at least one liberty in the position to be constructed or b) has at least one liberty on an intersection to be filled later by a same-coloured stone. QED.
-
jeromie
- Lives in sente
- Posts: 902
- Joined: Fri Jan 31, 2014 7:12 pm
- Rank: AGA 3k
- GD Posts: 0
- Universal go server handle: jeromie
- Location: Fort Collins, CO
- Has thanked: 319 times
- Been thanked: 287 times
Re: Number of Legal 19x19 positions calculated
gowan wrote:It's not clear to me that every such position could actually arise as a result of a sequence of valid moves starting with an empty board.
the article wrote:Due to its capture rule, the positions that can arise in a game of Go are exactly the legal positions.
Remember that passing is a legal move, too, so between placing stones, captures, and passing you can pretty easily reach any legal board state.
(And Robert beat me to the punch.)
-
DrStraw
- Oza
- Posts: 2180
- Joined: Tue Apr 27, 2010 4:09 am
- Rank: AGA 5d
- GD Posts: 4312
- Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
- Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
- Has thanked: 237 times
- Been thanked: 662 times
- Contact:
Re: Number of Legal 19x19 positions calculated
Uberdude wrote:I was indeed surprised a mathematician such as DrStraw would complain about lack of usefulness, but then maybe he is a grumpy old man first and a mathematician second.
P.S. I don't think there's many instances where you'd need pi to even that precision. IIRC you need about 40 digits to calculate the size of the observable universe to the accuracy of an atom, so unless you were calculating something with powers of pi (which is not so common) to increase the error then 100 is more than you need.
I may be grumpy at times but I am not old. And I have not been a mathematician now for several years, at least not in the sense that I actively do mathematics.
I do agree with the second paragraph though. It was exactly that which prompted my comment but I could not remember off the top of my head how many digits were required so I just said 100. Oh, and I wasn't complaining: merely commenting that I personally do not get excited by such results.
Still officially AGA 5d but I play so irregularly these days that I am probably only 3d or 4d over the board (but hopefully still 5d in terms of knowledge, theory and the ability to contribute).
-
Bill Spight
- Honinbo
- Posts: 10905
- Joined: Wed Apr 21, 2010 1:24 pm
- Has thanked: 3651 times
- Been thanked: 3373 times
Re: Number of Legal 19x19 positions calculated
jeromie wrote:gowan wrote:It's not clear to me that every such position could actually arise as a result of a sequence of valid moves starting with an empty board.the article wrote:Due to its capture rule, the positions that can arise in a game of Go are exactly the legal positions.
Remember that passing is a legal move, too, so between placing stones, captures, and passing you can pretty easily reach any legal board state.
(And Robert beat me to the punch.)
Passing is a move in Ing Rules and AGA rules, but not in all modern versions of the rules.
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins
Visualize whirled peas.
Everything with love. Stay safe.
At some point, doesn't thinking have to go on?
— Winona Adkins
Visualize whirled peas.
Everything with love. Stay safe.
-
TheBigH
- Lives in gote
- Posts: 323
- Joined: Sat Jan 07, 2012 1:06 am
- Rank: OGS 9kyu
- GD Posts: 0
- Location: Geelong, Australia
- Has thanked: 199 times
- Been thanked: 76 times
Re: Number of Legal 19x19 positions calculated
I assume this calculation does not count rotations, reflections, and swapping black and white as different positions. Well, I know that the colour swap doesn't count, or the number of legal positions would be an even number.
It's interesting to see that the number of legal positions is odd for every board size up to 19x19. Is this always true?
It's interesting to see that the number of legal positions is odd for every board size up to 19x19. Is this always true?
Poka King of the south east.
-
hyperpape
- Tengen
- Posts: 4382
- Joined: Thu May 06, 2010 3:24 pm
- Rank: AGA 3k
- GD Posts: 65
- OGS: Hyperpape 4k
- Location: Caldas da Rainha, Portugal
- Has thanked: 499 times
- Been thanked: 727 times
Re: Number of Legal 19x19 positions calculated
It doesn't account for rotations--all rotated versions are counted as separate positions. The odd number is because the empty board is legal, but the full board is not.
-
TheBigH
- Lives in gote
- Posts: 323
- Joined: Sat Jan 07, 2012 1:06 am
- Rank: OGS 9kyu
- GD Posts: 0
- Location: Geelong, Australia
- Has thanked: 199 times
- Been thanked: 76 times
Re: Number of Legal 19x19 positions calculated
Ah, good point. Although even if full boards were allowed it would still be an odd number because there are 2^361 possible fully occupied boards.
Poka King of the south east.
-
Jhyn
- Lives with ko
- Posts: 202
- Joined: Thu Sep 26, 2013 3:03 am
- Rank: EGF 1d
- GD Posts: 0
- Universal go server handle: Jhyn
- Location: Santiago, Chile
- Has thanked: 39 times
- Been thanked: 44 times
Re: Number of Legal 19x19 positions calculated
RBerenguel wrote:Mathematics is about expanding knowledge, you should know that.
As a mathematician myself, I do think that "knowledge expansion" has to be divided between gathering trivia and gathering information that deepen our understanding (with most research sitting in the middle). Knowing the actual number lies formly on the former side in my opinion (which is perfectly fine ; trivia is fun), as it doesn't help us understand anything better. The fact that we are able to count it so efficiently, on the other hand, is impressive.
La victoire est un hasard, la défaite une nécessité.
-
luigi
- Lives in gote
- Posts: 352
- Joined: Wed Jul 06, 2011 12:01 pm
- Rank: Low
- GD Posts: 0
- Location: Spain
- Has thanked: 181 times
- Been thanked: 41 times
Re: Number of Legal 19x19 positions calculated
Hmm, no. The odd number is because all positions but the empty board come in pairs where one results from reversing the colors of the other.hyperpape wrote:It doesn't account for rotations--all rotated versions are counted as separate positions. The odd number is because the empty board is legal, but the full board is not.
-
RobertJasiek
- Judan
- Posts: 6272
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: Number of Legal 19x19 positions calculated
Tromp posted the number ca. 2 years ago, after ca. 20 years of his research in the topic.