Блог пользователя Harta

Автор Harta, 16 лет назад, По-английски
I have a problem finding a strongly connected component of size exactly K in a Tournament Graph. Can someone help me?
Thanks in advance
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

16 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится
We can find cycle of length K (that obviously will be strongly connected component)

First find all strongly connected components in Tournament with classic O(N) 
if each component has size < K, there is no solution.

Check any component that has size >= K - it will be strongly connected tournament that  has all cycles from 3 to its size.