I thought what the best algorithm should be for finding all the solutions to this puzzle.
http://1cup1coffee.com/puzzle/endice/
Could a rollback be an approach to solve this issue or can you suggest any other approach?
thank
Rollback is definitely suitable if you want ALL solutions. BFS / A * / Dijkstra and the rest can work (it would be necessary to prove this), but in any case they most likely will not give you all the solutions.
The rollback should not take too much time, since the reproduced area is really small, and you have a relatively small number of parts and movements, which allows you to use good heuristics.
, , . , .
- D H, , D H. . , , , , D ( D) , D H. , E , D, , D ( E) H.
, , , , , , - , , , N , N H, N , .
, .
Source: https://habr.com/ru/post/1744305/More articles:SQLite lock file, although the connection is closed - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1744301/get-and-parse-json-with-jquery-from-gmaps-to-find-coordinates&usg=ALkJrhhI8DDwyEAq_7WiEAcrSY0lAPb3zQJAR file: digital signature - jarXSLT for each element collection loop - loopsGetting document.xml from a docx file using ZipInputStream - javaПринимать вход char, когда он должен быть строкой? - c++ruby language sorting function - ruby | fooobar.comsubversion 1.6.x теряют изменения при регистрации - svnHow to vertically align text using a button with a highlighted background? - androidpage separator in kate editor - pythonAll Articles