Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Tarjan の強連結成分アルゴリズムは、グラフ内にある基本的なサイクルまたはすべてのサイクルのみを見つけることができますか?
O(V + E) (多項式時間) で実行される限り、すべてのサイクルを見つけることはできません。それができれば、多項式時間でハミルトニアン サイクル問題を解くことができますが、この問題は NP 困難です。