home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.ai
- Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!cunews!bws-pc.carleton.ca!bws
- From: bws@ccs.carleton.ca (Brian Sullivan)
- Subject: Re: How do I solve the 8/15... Puzzle (was (Is it connected))
- Message-ID: <bws.48@ccs.carleton.ca>
- Sender: news@cunews.carleton.ca (News Administrator)
- Organization: Carleton University
- References: <babraham.3.715849833@unpcs1.cs.unp.ac.za> <1992Sep7.155720.19507@CSD-NewsHost.Stanford.EDU> <mgv.715889137@ash.cs.scarolina.edu> <1992Sep8.041003.17677@ctr.columbia.edu> <NAU.92Sep8225007@frabjous.cs.umd.edu> <mgv.716053877@ash.cs.scarolina.eOrganization: Carleton University
- Date: Thu, 10 Sep 1992 13:03:05 GMT
- Lines: 21
-
- > This does not indicate that SOLVING a generalized 15-puzzle
- >is NP-hard (it's far easier than that). It indicates that finding the
- >OPTIMAL SOLUTION is NP-hard, which is something else again, and not
- >suprising.
-
- > An approach to solving such puzzles is as follows:
- > 1) Solve the top row. Never modify the top row again.
- > 2) Solve the left column (less the top element). Never
- > modify the left column again.
- > 3) The puzzle has now been reduced from nxn to (n-1) x (n-1).
- > If n>1, recurse, solving the remaining puzzle.
-
- >Proving that this works is left to the reader.
-
- > John Nagle
-
- This works fine when n > 2 (the last recursion). It is very probable
- that the last 3 tiles will be out of order. The only way to deal with
- this would be to disturb one of the other rows or columns.
-
- Sorry John, I've had a bad morning and am being picky.
-