ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1077. Travelling Tours

Show all messages Hide all messages

I know the agorithm, but who can prove it? starforever 11 Jan 2007 06:49
let N be the node num of the graph.
so why the maximum cycle number is M-N+1?
where M is the edge num.

please...
o, sorry, I made a mistake...
is ur problem solved
Re: I know the agorithm, but who can prove it? Vedernikoff 'Goryinyich' Sergey (HSE: АОП) 11 Jan 2007 14:59
The correct formula is M-N+K, where K is the number of connected components of given graph. Why is not the question, if you know algo of building all these cycles...
Re: I know the agorithm, but who can prove it? Chmel_Tolstiy 15 Apr 2008 00:38
Great hint. Thanks.

Edited by author 13.10.2022 15:00

Edited by author 13.10.2022 15:00