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.
問題の複雑さのクラスが属するフィボナッチ数列のn番目の数を計算する問題?クラスPで確認してください!
はい、Binet の式を使用して P クラスにあることは確かですが、正確な数を示すことはできません。
解析解があるので、O(1) であり、P にあることを意味します。