回复:谁能用图论来解这道题? 恳请牛人出着。
aisanguo
2010-04-13 15:44:53
( reads)
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).
jinjing
2010-04-13 18:52:23You're right.If don't think about first and last Nbs.Erler paths