Click here to Skip to main content
       

Algorithms

 
GeneralRe: Splitting up multiple readings... PinmemberglennPattonWork9-Oct-12 4:45 
GeneralRe: Splitting up multiple readings... PinmemberEddy Vluggen22-Oct-12 6:24 
QuestionPuzzle 8 Solving with bfs [modified] Pinmembermohammadkaab25-Sep-12 22:50 
AnswerRe: Puzzle 8 Solving with bfs PinmemberAlan Balkany26-Sep-12 4:27 
GeneralRe: Puzzle 8 Solving with bfs Pinmembermohammadkaab26-Sep-12 4:38 
GeneralRe: Puzzle 8 Solving with bfs PinmemberAlan Balkany26-Sep-12 4:42 
GeneralRe: Puzzle 8 Solving with bfs Pinmembermohammadkaab26-Sep-12 5:01 
GeneralRe: Puzzle 8 Solving with bfs PinmemberAlan Balkany26-Sep-12 5:09 
The function would generate the sequence of moves that would place 3 in the position 4 is in, while leaving 1 and 2 in their correct positions. This is because 3 is the next tile to be placed in its correct position.
 
I don't have source code, but it would be a good exercise for you to write it. Googling "9 puzzle solution" gets lots of hits, and one of them probably has some source code. Similar results can be obtained searching for "15 puzzle solution", which is another common form of this puzzle type.
"Microsoft -- Adding unnecessary complexity to your work since 1987!"

GeneralRe: Puzzle 8 Solving with bfs [modified] Pinmembermohammadkaab26-Sep-12 21:36 
QuestionBit Interleaver PinmemberSkippums24-Sep-12 16:07 
QuestionImage processing Pinmemberfabio_antonio23-Sep-12 8:25 
AnswerRe: Image processing PinmemberAlan Balkany24-Sep-12 4:46 
QuestionChecking the network Pinmemberen41115-Sep-12 7:24 
AnswerlinkRe: Checking the network PinmemberYvesDaoust21-Sep-12 0:11 
Questionan optimal elevator-use algorithm PinmemberBillWoodruff13-Sep-12 3:38 
AnswerRe: an optimal elevator-use algorithm PinmemberAlan Balkany13-Sep-12 4:41 
GeneralRe: an optimal elevator-use algorithm PinmemberBillWoodruff19-Sep-12 4:35 
QuestionPlease, poke holes in my cryptographic function... [modified] PinmemberSixOfTheClock13-Sep-12 0:52 
QuestionWhat kind of checksum can this be? [modified] PinmemberGrooverFromHolland9-Sep-12 9:18 
AnswerRe: What kind of checksum can this be? PinmemberAlan N9-Sep-12 11:55 
GeneralRe: What kind of checksum can this be? PinmemberGrooverFromHolland9-Sep-12 22:15 
QuestionLinear Regression Most Efficient algorithm calc Line of Best Fit PinmemberA*****4-Sep-12 19:24 
AnswerRe: Linear Regression Most Efficient algorithm calc Line of Best Fit [modified] PinmemberPeter_in_27804-Sep-12 20:17 
QuestionRunning out of Memory - Maths Check PinmemberMike-MadBadger3-Sep-12 7:52 
AnswerRe: Running out of Memory - Maths Check [modified] PinmemberAndrei Straut3-Sep-12 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140922.1 | Last Updated 22 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid