Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

n-puzzle

Name: faggot 2011-03-15 21:18

I programmed up an n-puzzle solver that uses A*. It doesn't work. I am sad. I am trying to implement the Manhatten distance with linear conflicts heuristic, but the brute force approach seems to me to be a waste of time. I'm sure that there's a smart way to do this, but I can only think of an O(n^3) {or so} solution. Can you guys tell me to stop being a dumbass and figure it out?

Name: Anonymous 2011-03-16 1:56

>>5
Even for bruteforcing, you should get O(n^2).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List