Conditional Asymptotic Notation
Conditional Asymptotic Notation
satisfies a certain condition, such as being a power of 2. Consider, for example, the divide and conquer algorithm for multiplying large integers that we saw in the Introduction. et n be the size of the integers to be multiplied. !he algorithm proceeds directly if n = 1, which requires a microseconds for an appropriate constant a. If n>1, the algorithm proceeds by multiplying four pairs of integers of size n"2 #or three if we use the better algorithm$. Moreover, it ta%es a linear amount of time to carry out additional tas%s. &or simplicity, let us say that the additional wor% ta%es at most bn microseconds for an appropriate constant b.