your idea would reduce this problem to counting the number of distinct Hamiltonian paths in a undirected graph. Such a problem is generally hard (Hamiltonian path problem is NP-complete).
回复:谁能用图论来解这道题? 恳请牛人出着。
本帖于 2010-04-15 10:02:55 时间, 由版主 于德利 编辑
所有跟帖:
•
You're right.If don't think about first and last Nbs.Erler paths
-jinjing-
♀
(98 bytes)
()
04/13/2010 postreply
18:52:23