Compare Growth Against Encoded Input Length
Rank mixed growth rates and distinguish a number from its binary encoding length.
Related exam and assignment appearances
These links mark a related idea or close version; only groups explicitly marked as exact repeats in the question map count as duplicates.
Problem
Let an input contain a positive integer in binary, so the numeric field has length . Rank
by eventual growth. Then classify each bound as polynomial, superpolynomial, or exponential as a function of the actual input length . Prove every non-obvious comparison rather than relying on names.
Prerequisites
Know the unit definitions and how resources are measured against encoded input length. Distinguish a conditional theorem, a reduction, and an algorithm.
Hint 1
Substitute only after ranking the functions of .
Hint 2
Take logarithms when comparing positive exponentials.
Hint 3
To compare with powers of , write .
Full solution
Put . Taking logarithms where appropriate gives the exponent scales , , , , and . Since , , and , the eventual order is
For example,
for every fixed . Thus the second expression is larger than every fixed polylogarithm in but smaller than every positive power of .
Now measure against the encoded length. Because lies between and , replacing by preserves the relevant classes. We obtain
which is polynomial in the input length. Next,
This is superpolynomial because for every constant , , so . It is subexponential because .
The remaining three become
and
The first two are single-exponential in the encoded input length, whereas the last is double-exponential. The polynomial/exponential labels therefore depend on the declared size measure. Calling an algorithm polynomial is correct only when symbols are explicitly present; it is generally exponential when is a binary value.
All conclusions tolerate the ceiling in and a constant-base change of logarithm. Those changes multiply logarithms or exponents by constants and do not alter eventual domination or the classifications above.
Checkpoints
Check both logical directions, halting of every relevant branch, and that output length and construction time are polynomial in the encoded input length.
Common mistakes
- Ranking before fixing the size measure.
- Calling polynomial because its exponent is sublinear.
- Treating as merely single-exponential in .
Sources and verification
- Merged summary, pp. 8-13
- 2026 transcript 1
- Sipser 3e, sec. 7.1
- Catalog mapping:
data/exercises.json; statements and solutions are independently written; personal submissions are non-authoritative.
Provenance and confidence
The exercise is an original synthesis. Confidence reflects verification of the mathematical claim against the textbook sources listed above; course sources are used only where direct coverage is identified.