You seem to be making the common mistake of thinking big-Theta means average case and big-O means worst case, which is not correct.
Either big-O or big-Theta or big-Omega can be used meaningfully to describe any of best, average, or worst case -- the concepts are completely orthogonal.
To be mathematically accurate your page should have Theta everywhere.
You seem to be making the common mistake of thinking big-Theta means average case and big-O means worst case, which is not correct.
Either big-O or big-Theta or big-Omega can be used meaningfully to describe any of best, average, or worst case -- the concepts are completely orthogonal.
To be mathematically accurate your page should have Theta everywhere.