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.
それで、キーを見つけるのにO(高さ)の時間がかかります、与えられたキーよりも大きいキーを持つすべてのノードを見つけるのにどれくらいの時間がかかりますか?一定の要因は何ですか?
それが適切に行われる場合は、おそらくキーを見つけて、次のキーに順番に移動します。
したがって、O(logn)+mになります。ここで、mはキーよりも大きいバグの数です。 最悪の場合はO(logn)+ n = O(n)になります