Benchmark Instances and Branch-and-Cut Algorithm for the Hashiwokakero Puzzle

05/02/2019
by   Leandro C. Coelho, et al.
0

Hashiwokakero, or simply Hashi, is a Japanese single-player puzzle played on a rectangular grid with no standard size. Some cells of the grid contain a circle, called island, with a number inside it ranging from one to eight. The remaining positions of the grid are empty. The player must connect all of the islands by drawing a series of horizontal or vertical bridges between them, respecting a series of rules: the number of bridges incident to an island equals the number indicated in the circle, at most two bridges are incident to any side of an island, bridges cannot cross each other or pass through islands, and each island must eventually be reachable from any other island. In this paper, we present some complexity results and relationships between Hashi and well-known graph theory problems. We give a formulation of the problem by means of an integer linear mathematical programming model, and apply a branch-and-cut algorithm to solve the model in which connectivity constraints are dynamically generated. We also develop a puzzle generator. Our experiments on 1440 Hashi puzzles show that the algorithm can consistently solve hard puzzles with up to 400 islands.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/19/2021

New formulations and branch-and-cut procedures for the longest induced path problem

Given an undirected graph G=(V,E), the longest induced path problem (LIP...
research
08/12/2019

Shared-Memory Branch-and-Reduce for Multiterminal Cuts

We introduce the fastest known exact algorithm for the multiterminal cut...
research
04/26/2019

An efficient branch-and-cut algorithm for approximately submodular function maximization

When approaching to problems in computer science, we often encounter sit...
research
10/31/2011

Loosely Coupled Formulations for Automated Planning: An Integer Programming Perspective

We represent planning as a set of loosely coupled network flow problems,...
research
06/29/2021

Valid inequalities and a branch-and-cut algorithm for the routing and spectrum allocation problem

One of the most promising solutions to deal with huge data traffic deman...
research
11/09/2021

An efficient branch-and-cut algorithm for the parallel drone scheduling traveling salesman problem

We propose an efficient branch-and-cut algorithm to exactly solve the pa...
research
03/05/2022

Double Choco is NP-complete

In the Nikoli pencil-and-paper game Double Choco, a puzzle consists of a...

Please sign up or login with your details

Forgot password? Click here to reset