Article View: rec.puzzles
Article #2748Re: Rubik's tour.
From: Ioannis Galidakis
Date: Sat, 22 Jan 2000 00:00
Date: Sat, 22 Jan 2000 00:00
39 lines
3153 bytes
3153 bytes
Androcles wrote:
[snip]
> Okay, well, for amusement only:
> There is a well-known little puzzle known as the "Knight's Tour".
> The object of the puzzle is to have the (chess) knight visit all 64 squares
> on the chessboard
> once and once only, according to his usual move, being 1 square in x, two
> squares in y, or 1 square in y and two in x.
> First question:
> After the knight has completed the tour, what is the least number of moves
> needed to return to the starting position?
> Second question:
> Can this result be modified by taking a different tour?
[snip]
I am not sure I understand the first question (least number of moves),
but the Knight's tour puzzle has a known solution. You can find an
optimal tour by selecting always your next move according to the rule:
The available moves from your next move's spot has to be minimal. So, to
elaborate: If the Knight can move into positions x1, x2,..x8 (in
general), and denote by nm(xn) the number of available moves at place
xn, then a valid next move (that leads to a solution) would be xi, where
nm(xi)=min{nm(xj),j=1..8}.
An interesting side effect to a solution followed by the above
algorithm, is that if you number the squares according to the order
visited, you get a magic square. Since the chessboard is 8x8, this would
be a non-trivial magic square, contrary to odd sided squares which can
get formed by laying the natural numbers in diagonals.
Cheerio
> Androcles
--
Ioannis Galidakis jgal@ath.forthnet.gr
<http://www.crosswinds.net/athens/~jgal/main.html>
______________________________________
"Blessed are the ones who can laugh at themselves,
for they shall never cease to be amused."
Technical Details
Message-ID:
<38891B7D.755A@ath.forthnet.gr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<387DD6C1.24CC@ameritech.net> <xuMh4.3648$j63.455581@news1.rdc2.pa.home.com> <3887BFD4.116B@ameritech.net> <NMSh4.3936$j63.485453@news1.rdc2.pa.home.com> <38884C17.50BD@ameritech.net> <M66i4.4432$j63.528634@news1.rdc2.pa.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa70b,cb2f33b9a8d8dd55 X-Google-Attributes: gidfa70b,public X-Google-Thread: 10b299,cb2f33b9a8d8dd55 X-Google-Attributes: gid10b299,public X-Google-Thread: 1130d6,cb2f33b9a8d8dd55 X-Google-Attributes: gid1130d6,public X-Google-Thread: fee76,cb2f33b9a8d8dd55 X-Google-Attributes: gidfee76,public X-Google-Thread: 109d8a,cb2f33b9a8d8dd55 X-Google-Attributes: gid109d8a,public X-Google-Thread: 102524,cb2f33b9a8d8dd55 X-Google-Attributes: gid102524,public X-Google-Thread: fc333,cb2f33b9a8d8dd55 X-Google-Attributes: gidfc333,public From: Ioannis Galidakis <jgal@ath.forthnet.gr> Subject: Re: Rubik's tour. Date: 2000/01/22 Message-ID: <38891B7D.755A@ath.forthnet.gr> X-Deja-AN: 575993937 Content-Transfer-Encoding: 7bit References: <387DD6C1.24CC@ameritech.net> <xuMh4.3648$j63.455581@news1.rdc2.pa.home.com> <3887BFD4.116B@ameritech.net> <NMSh4.3936$j63.485453@news1.rdc2.pa.home.com> <38884C17.50BD@ameritech.net> <M66i4.4432$j63.528634@news1.rdc2.pa.home.com> Content-Type: text/plain; charset=iso-8859-7 X-Complaints-To: abuse@forthnet.gr X-Trace: medousa.forthnet.gr 948508717 27144 194.219.171.34 (22 Jan 2000 02:38:37 GMT) Organization: Morpheus Inc., Mime-Version: 1.0 Reply-To: jgal@ath.forthnet.gr NNTP-Posting-Date: 22 Jan 2000 02:38:37 GMT Newsgroups: rec.puzzles,alt.math,sci.math,alt.math.recreational,alt.brain.teasers,misc.writing,cz.soc.mensa