由买买提看人间百态

topics

全部话题 - 话题: debrujin
(共0页)
M*******a
发帖数: 1633
1
来自主题: JobHunting版 - G面试题,很难
G家题目难道都要你事先知道什么deBrujin cycle才做得出来?
这里多少人认为自己事先不知道deBrujin cycle能当场figure out出来?
f*****e
发帖数: 2992
2
来自主题: JobHunting版 - G面试题,很难
deBrujin cycle.
j*********g
发帖数: 36
3
来自主题: JobHunting版 - G面试题,很难
This is not gray code. No need to formulate it as TSP. Also, debrujin
graph only gives you a problem formulation.
You can solve by finding an Eulerian tour. Each node is a 3-digit number eg
100, and two nodes 100 and 001 are adjacent if they can be combined into
1001. Now every node has equal in-degree and out-degree, thus an Eulerien
tour exists and can be found using the standard algorithm.
(共0页)