I have a grid graph with 30 rows and 30 columns.
(我有一个30行30列的网格图。)
How do I implement the algorithm for finding the Hamiltionian cycle (in c++ possibly)? (如何实现查找汉密顿循环的算法(可能在C ++中)?)
One, so that it returns a 30*30 grid, in every cell a value from 0-899, so I can track the path (it goes from 0 to 1, from 1 to 2). (一个,这样它返回一个30 * 30的网格,在每个单元格中,其值为0-899,因此我可以跟踪路径(它从0到1,从1到2)。)
ask by yomag1234 translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…