|
|
вернуться в форумHello, everybody! I tryed to solve this problem for a week. I DO NOT KNOW WHAT TO DO. I can't think out anything :( Thanks. Dijkstra, Dijkstra... You can make a graph, where every vertex defines a state of the cube (I mean position and rotation) and every edge defines how much does it cost to move from one position to the other, then use Dijkstra, Bellman or whatever you want. I think it will help. Edited by author 02.02.2005 21:21 I think BFS is useable too! I think you can write that iff you have already accepted your solution. I think you can use BFS if numbers on top, bottom, left, right, front and back sides of cube are equal, else Dijkstra or bruteforce :) |
|
|