Next:
Up:
Previous:
Analysis
n(H) = n
length(rootlist)
D(n) + t(H) - 1
T(while loop)
D(n) + t(H)
c
i
= O(D(n) + t(H))
= t(H) + 2m(H)
D(n) + 1 + 2m(H)
=
c
i
+ (D(n) + 1 + 2m(H)) - (t(H) + 2m(H))
= O(D(n) + t(H)) + D(n) + 1 - t(H)
= O(D(n))
Assuming adjustment of potential coefficients to dominate coefficients hidden in O(t(H)).
Next:
Up:
Previous: