Masyu
   HOME

TheInfoList



OR:

is a type of
logic puzzle A logic puzzle is a puzzle deriving from the mathematics, mathematical field of deductive reasoning, deduction. History The logic puzzle was first produced by Charles Lutwidge Dodgson, who is better known under his pen name Lewis Carroll, the au ...
designed and published by Nikoli. The purpose of its creation was to present a puzzle that uses no numbers or letters and yet retains depth and aesthetics.


Rules

''Masyu'' is played on a rectangular grid of squares, some of which contain circles; each circle is either "white" (empty) or "black" (filled). The goal is to draw a single continuous non-intersecting loop that properly passes through all circled cells. The loop must "enter" each cell it passes through from the center of one of its four sides and "exit" from a different side; all turns are therefore 90 degrees.. The two varieties of circle have differing requirements for ''how'' the loop must pass through them: *White circles must be traveled straight through, but the loop must turn in the previous and/or next cell in its path. *Black circles must be turned upon, but the loop must travel straight through the next and previous cells in its path.


Variants

*There are additionally or solely gray circles. The solver has to find out which of these gray circles are white and which are black. *The diagram is a
Toroid In mathematics, a toroid is a surface of revolution with a hole in the middle. The axis of revolution passes through the hole and so does not intersect the surface. For example, when a rectangle is rotated around an axis parallel to one of its ...
; i.e. the left and the right edge of the diagram as well as the top and the bottom edge of the diagram are glued together. *The diagram is divided into regions; the loop must turn in every region at least once. *The diagram is played on a hexagonal grid, with grey circles indicating 60-degree turns where the loop turns both before and after the turn, and black circles indicating 120-degree turns where the loop goes straight on the cells before and after the turn.


History

The early version of ''Masyu'' first appeared in ''
Puzzle Communication Nikoli A puzzle is a game, problem, or toy that tests a person's ingenuity or knowledge. In a puzzle, the solver is expected to put pieces together ( or take them apart) in a logical way, in order to arrive at the correct or fun solution of the puzzle ...
'' #84 under the title of ''Shinju no Kubikazari'' (真珠の首飾り, meaning "pearl necklace"). That puzzle contains only white circles. Black circles were introduced in ''Puzzle Communication Nikoli'' #90, and the puzzle was renamed ''Shiroshinju Kuroshinju'' (白真珠黒真珠, meaning "white pearls and black pearls"). This improvement deepened the puzzle and made it gain popularity. ''Masyu'', which is originally a misreading by Nikoli's president of
kanji are the logographic Chinese characters taken from the Chinese family of scripts, Chinese script and used in the writing of Japanese language, Japanese. They were made a major part of the Japanese writing system during the time of Old Japanese ...
真珠 (''shinju''), and apparently became an inside joke at the Nikoli office, was adopted in ''Puzzle Communication Nikoli'' #103 to replace the old lengthy name.


Solution methods

Understanding the nuances of the circles and how they interact with each other is the key to solving a ''Masyu'' puzzle. Generally speaking, it is easiest to start along the outside border of the grid and work inwards. Here are some basic scenarios where portions of the loop can be determined: *Any segment travelling from a black circle must travel two cells in that direction without intersecting another part of the loop or the outer border; each black cell must have two such segments at a right angle. The logical combination of those two statements is that if a segment from a black cell cannot be drawn in some orthogonal direction, a segment in the ''opposite'' direction ''must'' be drawn. For example, if one cannot legally travel up two cells from a black circle, then the loop must travel down from that black circle for two cells. This has two common results: **Any black circle along the outer border or one cell from the outer border must have a segment leading away from the border (and those sufficiently near a corner must lead from both walls, defining the loop's path through the circle); **Orthogonally adjacent black circles must have segments travelling away from each other. **Black circles that are orthogonally next to the end of the loop that does not travel towards it must have the loop heading away from the other loop segment. *White circles along the outer border obviously need the loop to travel through them parallel to the border; if two white circles along a border are adjacent or are one cell apart, then the loop will need to turn away from the border just beyond the circles. *If three or more white circles are orthogonally contiguous and collinear, then the loop will need to pass through each of those circles perpendicular to the line of circles. *If two white circles are orthogonally contiguous and a cell on either end has a loop segment entering parallel to the line of the circles, then the loop will need to pass through each of those circles perpendicular to their line. (Otherwise, the line through them would connect to the adjacent segment and one of the white cells would not be next to a turn in the loop.) *A black circle with two white circles diagonally adjacent on the same side must have the loop heading away from that side. If not, and it went between the white circles instead, then the white circles would be parallel to that section of the loop, and make it impossible to complete the black circle. **Black circles with three white circles diagonally adjacent can be fully completed by this rule. *If the diagram is cut virtually into two pieces, the loop must cross the cutting line an even number of times. This is due to the
Jordan Curve Theorem In topology, the Jordan curve theorem asserts that every ''Jordan curve'' (a plane simple closed curve) divides the plane into an " interior" region bounded by the curve and an "exterior" region containing all of the nearby and far away exterior ...
. As in other loop-construction puzzles, "short circuits" also need to be avoided: as the solution must consist of a single loop, any segment that would close a loop is forbidden unless it immediately yields the solution to the entire puzzle. Like many other combinatory and logic puzzles, Masyu can be very difficult to solve; solving Masyu on arbitrarily large grids is an
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by tryi ...
problem.{{cite web , author = Friedman, Erich , title = Pearl Puzzles are NP-complete , url = http://www2.stetson.edu/~efriedma/papers/pearl/pearl.html , date = 2012-03-27 , archive-url = https://web.archive.org/web/20120204150006/http://www2.stetson.edu/~efriedma/papers/pearl/pearl.html , archive-date = 2012-02-04 , url-status = dead However, published instances of puzzles have generally been constructed in such a way that they can be solved in a reasonable amount of time.


See also

*
List of Nikoli puzzle types is a Japanese publisher that specializes in games and, especially, logic puzzles. ''Nikoli'' is also the nickname of a quarterly magazine (whose full name is ''Puzzle Communication Nikoli'') issued by the company in Tokyo. ''Nikoli'' was establish ...


References


External links


Masyu page at Web Nikoli'Father of Sudoku' puzzles next move
BBC #REDIRECT BBC #REDIRECT BBC Here i going to introduce about the best teacher of my life b BALAJI sir. He is the precious gift that I got befor 2yrs . How has helped and thought all the concept and made my success in the 10th board exam. ...
...
Logic puzzles NP-complete problems