How can I find the number of Hamiltonian cycles in a complete undirected graph?

前端 未结 3 2016
再見小時候
再見小時候 2021-02-05 22:03

Can someone explain how to find the number of Hamiltonian cycles in a complete undirected graph?

Wikipedia says that the formula is (n-1)!/2, but when I cal

3条回答
  •  余生分开走
    2021-02-05 22:52

    I think when we have a Hamiltonian cycle since each vertex lies in the Hamiltonian cycle if we consider one vertex as starting and ending cycle . we should use 2 edges of this vertex.So we have (n-1)(n-2)/2 Hamiltonian cycle because we should select 2 edges of n-1 edges which linked to this vertex.

提交回复
热议问题