Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
339 views
in Technique[技术] by (71.8m points)

c++ - 在网格图中找到哈密顿循环[关闭](Finding Hamiltonian cycle in a grid graph [closed])

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...