Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Rules  





2 Solution methods  





3 History  





4 See also  





5 References  





6 External links  














Hashiwokakero






Català
Deutsch
Español
Français
Bahasa Indonesia
עברית
Magyar
Македонски
Nederlands

Polski
Русский
Svenska

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Unsolved puzzle
Solved puzzle
AHashiwokakero puzzle (left) and one of its solutions. The number of bridges connected to each "island" must match the number written on that island.

Hashiwokakero (橋をかけろ Hashi o kakero; lit. "build bridges!") is a type of logic puzzle published by Nikoli.[1] It has also been published in English under the name BridgesorChopsticks (based on a mistranslation: the hashi of the title, , means bridge; hashi written with another character, , means chopsticks). It has also appeared in The Times under the name Hashi. In France, Denmark, the Netherlands, and Belgium it is published under the name Ai-Ki-Ai.

Rules[edit]

Hashiwokakero is played on a rectangular grid with no standard size, although the grid itself is not usually drawn. Some cells start out with (usually encircled) numbers from 1 to 8 inclusive; these are the "islands". The rest of the cells are empty.

The goal is to connect all of the islands by drawing a series of bridges between the islands. The bridges must follow certain criteria:[2]

Solution methods[edit]

Moderately difficult Hashiwokakero puzzle (solution)

Solving a Hashiwokakero puzzle is a matter of procedural force: having determined where a bridge must be placed, placing it there can eliminate other possible places for bridges, forcing the placement of another bridge, and so on.[3]

An island showing '3' in a corner, '5' along the outside edge, or '7' anywhere must have at least one bridge radiating from it in each valid direction, for if one direction did not have a bridge, even if all other directions sported two bridges, not enough will have been placed. A '4' in a corner, '6' along the border, or '8' anywhere must have two bridges in each direction. This can be generalized as added bridges obstruct routes: a '3' that can only be travelled from vertically must have at least one bridge each for up and down, for example.

It is common practice to cross off or fill in islands whose bridge quota has been reached.[2] In addition to reducing mistakes, this can also help locate potential "short circuits": keeping in mind that all islands must be connected by one network of bridges, a bridge that would create a closed network that no further bridges could be added to can only be permitted if it immediately yields the solution to the complete puzzle. The simplest example of this is two islands showing '1' aligned with each other; unless they are the only two islands in the puzzle, they cannot be connected by a bridge, as that would complete a network that cannot be added to, and would therefore force those two islands to be unreachable by any others.

Any bridge that would completely isolate a group of islands from another group would not be permitted, as one would then have two groups of islands that could not connect. This deduction, however, is not very commonly seen in Hashiwokakero puzzles.

Determining whether a Hashiwokakero puzzle has a solution is NP-complete, by a reduction from finding Hamiltonian cycles in integer-coordinate unit distance graphs.[4] There is a solution using integer linear programming in the MathProg examples included in GLPK.[5] A library of puzzles counting up to 400 islands as well as integer linear programming results are also reported.[6]

History[edit]

Hashiwokakero first appeared in Puzzle Communication Nikoli in issue #31 (September 1990), although an earlier form of the puzzle appeared in issue #28 (December 1989).

See also[edit]

References[edit]

  1. ^ Puzzle Cyclopedia, Nikoli, 2004. ISBN 4-89072-406-0.
  • ^ a b Wanko, Jeffrey J. (2010), "Deductive Puzzling" (PDF), Mathematics Teaching in the Middle School, 15 (9): 524–529, doi:10.5951/MTMS.15.9.0524.
  • ^ Malik, Reza Firsandaya; Efendi, Rusdi; Pratiwi, Eriska Amrina (March 2012), "Solving Hashiwokakero puzzle game with Hashi solving techniques and depth first search", Bulletin of Electrical Engineering and Informatics, 1 (1): 61–68, doi:10.11591/eei.v1i1.227 (inactive 31 January 2024){{citation}}: CS1 maint: DOI inactive as of January 2024 (link)
  • ^ Andersson, Daniel (2009), "Hashiwokakero is NP-complete", Information Processing Letters, 109 (19): 1145–1146, doi:10.1016/j.ipl.2009.07.017, MR 2552932.
  • ^ "GTLK repo in Github". GitHub. Retrieved 20 October 2022..
  • ^ Coelho, L.C.; Laporte, G.; Lindbeck, A.; Vidal, T. (2019), "Benchmark instances and branch-and-cut algorithm for the Hashiwokakero puzzle", arXiv:1905.00973 [cs.DM].
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Hashiwokakero&oldid=1201900876"

    Categories: 
    Logic puzzles
    Japanese entertainment terms
    NP-complete problems
    Hidden categories: 
    CS1 maint: DOI inactive as of January 2024
    Articles with short description
    Short description is different from Wikidata
    Commons category link from Wikidata
     



    This page was last edited on 1 February 2024, at 16:27 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki