|
|
вернуться в форумIf you want to do this fast. I think counting total amount of graph components and then printing it-1 faster than to do it by MST.We can do it in O(n+k) time and we needn't know anything about bridges. Edited by author 11.07.2011 23:20 |
|
|