International Conference on Computers and Games

CG 2000: Computers and Games pp 229-240

Integer Programming Based Algorithms for Peg Solitaire Problems

  • Masashi Kiyomi
  • Tomomi Matsui
Conference paper

DOI: 10.1007/3-540-45579-5_15

Volume 2063 of the book series Lecture Notes in Computer Science (LNCS)
Cite this paper as:
Kiyomi M., Matsui T. (2001) Integer Programming Based Algorithms for Peg Solitaire Problems. In: Marsland T., Frank I. (eds) Computers and Games. CG 2000. Lecture Notes in Computer Science, vol 2063. Springer, Berlin, Heidelberg


Peg solitaire is a one player game using pegs and a board with some holes. The game is classical, and nowadays sold in many parts of the world under the trade name of Hi-Q.

In this paper, we dealt with the peg solitaire problem as an integer programming problem. We proposed algorithms based on the backtrack search method and relaxation methods for integer programming problem.

The algorithms first solve relaxed problems and get an upper bound of the number of jumps for each jump position. This upper bound saves much time at the next stage of backtrack searching. While solving the relaxed problems, we can prove many peg solitaire problems are infeasible. We proposed two types of backtrack searching, forward-only searching and forward-backward searching. The performance of these two methods highly depends on the symmetricity and the length of the sequence of required jumps. Our algorithm can solve all the peg solitaire problem instances we tried and the total computational time is less than 20 minutes on an ordinary notebook personal computer.


peg solitaire integer programming backtrack searching 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2001

Authors and Affiliations

  • Masashi Kiyomi
    • 1
  • Tomomi Matsui
    • 1
  1. 1.Department of Mathematical Engineering and Information Physics Graduate School of EngineeringUniversity of TokyoTokyoJapan