1/ What algorithm would you use to count all the hamiltionian paths in a n x m grid graph (n and m <10) from a given starting vertice to an ending one
2/ if this grid graph have holes?
Thanks in advance
|
1
2
|
1/ What algorithm would you use to count all the hamiltionian paths in a n x m grid graph (n and m <10) from a given starting vertice to an ending one 2/ if this grid graph have holes? Thanks in advance |
|||||||||||||||||||
|
|
1
|
Here is Mathematica code that finds all the Hamiltonian paths between opposite corners of a $5 \times 5$ grid graph:
|
||||||||
|