The maximum liberty of a group on a Go board

For lessons, as well as threads about specific moves, and anything else worth studying.
Post Reply
xiver77
Beginner
Posts: 6
Joined: Wed Apr 13, 2022 2:35 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 2 times

The maximum liberty of a group on a Go board

Post by xiver77 »

A simple problem came to mind a while ago, but I couldn't think of a clear solution.
What is the maximum number of liberties a group can have on an n × n Go board?
We can name a function for this as maxlib(n).

A brute force approach to compute maxlib has insane time complexity. I actually wrote and ran a program to compute this brute force, and could only reach n = 6 after about 2 hours, maybe.

I posted a programming challenge about this, and still haven't got a fast enough solution, but a user named Loopy Walt did post a convincing conjecture that,

Code: Select all

maxlib(n) = 0, if n = 1
            2, if n = 2
            6, if n = 3
            (2n - 1)⌊n / 3⌋, if n % 3 = 0
            (2n - 1)⌊n / 3⌋ + n, if n % 3 = 2
            2n⌊n / 3⌋ + 1, otherwise
This conjecture is justified although not proved by the following group patterns.

Code: Select all

n % 3 = 0
............ 
XXXXXXXXXXXX
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.
.X..X..X..X.

Code: Select all

n % 3 = 2
........... 
XXXXXXXXXXX
.X..X..X..X
.X..X..X..X
.X..X..X..X
.X..X..X..X
.X..X..X..X
.X..X..X..X
.X..X..X..X
.X..X..X..X
.X..X..X..X

Code: Select all

n % 3 = 1
.......... 
XXXXXXXXXX
.X..X..X..
.X..X..X..
.X..X..XXX
.X..X..X..
.X..X..X..
.X..X..XXX
.X..X..X..
.X..X..XX.
An OEIS sequence (A320666) exists for maxlib. The currently known values are only up to n = 24.

Code: Select all

n maxlib(n)
1 0
2 2
3 6
4 9
5 14
6 22
7 29
8 38
9 51
10 61
11 74
12 92
13 105
14 122
15 145
16 161
17 182
18 210
19 229
20 254
21 287
22 309
23 338
24 376
Elom0
Lives in sente
Posts: 732
Joined: Sun Feb 20, 2022 9:03 pm
Rank: BGA 3 kyu
GD Posts: 0
KGS: Elom, Windnwater
OGS: Elom, Elom0
Online playing schedule: The OGS data looks pretty so I'll pause for now before I change it.
Has thanked: 1028 times
Been thanked: 32 times

Re: The maximum liberty of a group on a Go board

Post by Elom0 »

I can't understand the programming aspects but I can glean that obviously since a 1x1 board would give zero liberties there's a non-linear component to it. However wouldn't a group with the maximum liberties be, for example on 19x19, a 63-stone near loop? So wouldn't it just be (4*(2n-2)) minus whatever constants to account for 1x1?
User avatar
jlt
Gosei
Posts: 1786
Joined: Wed Dec 14, 2016 3:59 am
GD Posts: 0
Has thanked: 185 times
Been thanked: 495 times

Re: The maximum liberty of a group on a Go board

Post by jlt »

As said in the OP, this group has 229 liberties.
Click Here To Show Diagram Code
[go]$$
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | X X X X X X X X X X X X X X X X X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . , X . . X . , X . . X . , X . . |
$$ | . X . . X . . X . . X . . X . . X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . . X . . X . . X . . X . . X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . , X . . X . , X . . X . , X . . |
$$ | . X . . X . . X . . X . . X . . X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . . X . . X . . X . . X . . X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . , X . . X . , X . . X . , X . . |
$$ | . X . . X . . X . . X . . X . . X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ ---------------------------------------[/go]
User avatar
Cassandra
Lives in sente
Posts: 1326
Joined: Wed Apr 28, 2010 11:33 am
Rank: German 1 Kyu
GD Posts: 0
Has thanked: 14 times
Been thanked: 153 times

Re: The maximum liberty of a group on a Go board

Post by Cassandra »

Click Here To Show Diagram Code
[go]$$B
$$ +---------------------------------------+
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | X X X X X X X X X X X X X X X X X X X |
$$ | . X . . . . . . . . . . . . . . . . . |
$$ | . X . , . . . . . , . . . . . , . . . |
$$ | . X X X X X X X X X X X X X X X X X X |
$$ | . X . . X . . . . . . . . . . . . . . |
$$ | . X . . X . . . . . . . . . . . . . . |
$$ | . X . . X X X X X X X X X X X X X X X |
$$ | . X . . X . . X . . . . . . . . . . . |
$$ | . X . , X . . X . , . . . . . , . . . |
$$ | . X . . X . . X X X X X X X X X X X X |
$$ | . X . . X . . X . . X . . . . . . . . |
$$ | . X . . X . . X . . X . . . . . . . . |
$$ | . X . . X . . X . . X X X X X X X X X |
$$ | . X . . X . . X . . X . . X . . . . . |
$$ | . X . , X . . X . , X . . X . , . . . |
$$ | . X . . X . . X . . X . . X X X X X X |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ | . X . . X . . X . . X . . X . . X . . |
$$ +---------------------------------------+[/go]
This arrangement of the stones is probably preferable for systematic reasons.
The really most difficult Go problem ever: https://igohatsuyoron120.de/index.htm
Igo Hatsuyōron #120 (really solved by KataGo)
Post Reply