Solving 8 8 Hex Philip Henderson Department of Computing Science - - PowerPoint PPT Presentation

solving 8 8 hex
SMART_READER_LITE
LIVE PREVIEW

Solving 8 8 Hex Philip Henderson Department of Computing Science - - PowerPoint PPT Presentation

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Solving 8 8 Hex Philip Henderson Department of Computing Science University of Alberta Edmonton, Alberta, Canada Joint work with Broderick Arneson and Ryan


slide-1
SLIDE 1

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Solving 8 × 8 Hex

Philip Henderson

Department of Computing Science University of Alberta Edmonton, Alberta, Canada

Joint work with Broderick Arneson and Ryan B. Hayward

Philip Henderson Solving 8 × 8 Hex

slide-2
SLIDE 2

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Hex Rules and Properties

Rules Two players alternate turns playing on any empty cell Stones are permanent (no moving or capturing) Goal is to connect your two sides of the board

Philip Henderson Solving 8 × 8 Hex

slide-3
SLIDE 3

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Hex Rules and Properties

Properties Extra P-stones never disadvantageous for player P Draws are impossible First player wins: strategy-stealing argument Determining winner is PSPACE-complete

Philip Henderson Solving 8 × 8 Hex

slide-4
SLIDE 4

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Previously Solved States H-Search Inferior Cell Analysis

Previously Solved States

Last milestone for automated Hex solvers in 2004 All 7 × 7 openings solved in two weeks (Hayward et al) By hand, humans have solved centre opening on 9 × 9 (Yang) and a few openings on 8 × 8 (Mishima et al, Yang)

Philip Henderson Solving 8 × 8 Hex

slide-5
SLIDE 5

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Previously Solved States H-Search Inferior Cell Analysis

H-Search

H-Search: algorithm that deduces existing connection strategies in a given Hex position (Anshelevich) Virtual connections (VC): 2nd-player connection strategy Semi-connections (SC): 1st-player connection strategy Carrier: empty cells required for a connection strategy

Philip Henderson Solving 8 × 8 Hex

slide-6
SLIDE 6

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Previously Solved States H-Search Inferior Cell Analysis

Mustplay

Identifying a winning VC terminates search Identifying winning SCs immediately prunes losing moves Mustplay: intersection of winning opponent SC carriers

Philip Henderson Solving 8 × 8 Hex

slide-7
SLIDE 7

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Previously Solved States H-Search Inferior Cell Analysis

Inferior Cell Analysis

Graph-theoretic properties and combinatorial game theory Fill-in: can add stones to the board without changing its win/loss value Reversible and dominated moves: can be pruned from consideration

Philip Henderson Solving 8 × 8 Hex

slide-8
SLIDE 8

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Opposite Color Bridges

If a P-chain is adjacent to both P edges, then splits board into two independent regions Easy to detect these decompositions, but very rare Opposite-color bridges: can treat the two carrier cells as non-adjacent

Philip Henderson Solving 8 × 8 Hex

slide-9
SLIDE 9

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Split Decompositions

Two chains touch if they are adjacent or form an

  • pposite-color bridge

Split decomposition: when a P-chain touches both P-edges

Philip Henderson Solving 8 × 8 Hex

slide-10
SLIDE 10

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Four-Sided Decompositions

Four-sided decomposition: a 4-cycle of touching Black and White chains If player P has a VC connecting the two P-chains of a four-sided decomposition, the region can be filled-in with P-stones

Philip Henderson Solving 8 × 8 Hex

slide-11
SLIDE 11

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Proof Set Pruning

During search we identify previously-unknown winning SCs Can use discovered SCs to further reduce mustplay The smaller the SC carrier, the more moves can be pruned

Philip Henderson Solving 8 × 8 Hex

slide-12
SLIDE 12

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Proof Set Reduction

Given a discovered SC, we try to shrink its carrier Cells outside the SC for player P can be assigned to P Inferior cell analysis may identify P-fill-in These cells can be deleted from the SC’s carrier

Philip Henderson Solving 8 × 8 Hex

slide-13
SLIDE 13

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Proof Set Transpositions

While solving states we track the winning strategy’s carrier The losing player’s stones can be any combination of cells

  • utside of this carrier

We can store the result for all these combinations as well

Philip Henderson Solving 8 × 8 Hex

slide-14
SLIDE 14

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary Decompositions Proof Set Reduction Transposition Deductions

Player Exchange Transpositions

Want to translate a solved state to equivalent ones with players reversed Mirroring stones and reversing their colors is not adequate Stone must be added or removed; depends on player to move and who won

Philip Henderson Solving 8 × 8 Hex

slide-15
SLIDE 15

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Current Results

7 × 7: 10 minutes 8 × 8: 300 hours and 108 internal nodes 9 × 9: Cannot solve any opening in two weeks time

Philip Henderson Solving 8 × 8 Hex

slide-16
SLIDE 16

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Feature Contributions on 7 × 7

feature f

  • nly f off
  • nly f on

time nodes time nodes rotation/transposition deduction 2.17 2.22 0.43 0.43 decompositions 1.29 1.51 0.68 0.61 proof set reduction 0.98 1.01 1.03 0.87

Philip Henderson Solving 8 × 8 Hex

slide-17
SLIDE 17

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Summary

New: decompositions, proof set reduction, transposition deductions Enhanced H-search, inferior cell analysis First automated solver for 8 × 8 Hex openings Future Work 9 × 9 at least 3 magnitudes more difficult Depth-first proof-number search (parallelized) Further improve inferior cell analysis, decompositions, etc

Philip Henderson Solving 8 × 8 Hex

slide-18
SLIDE 18

Hex Rules and Properties Related Work New Techniques Results and Analysis Summary

Any Questions?

Thanks to: NSERC, iCORE, AIF, Martin Müller, Jonathan Schaeffer, Lorna Stewart for funding support University of Alberta GAMES group and referees for helpful comments

Philip Henderson Solving 8 × 8 Hex