chapter

    Asymptotic Notation Notes for Cmi M.sc. and Ph.d. Computer Science

    Asymptotic Notation notes for CMI M.Sc. and Ph.D. Computer Science: 33 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice

    Asymptotic Notation notes

    Why we measure growth not exact time

    Intuition

    Why we measure growth not exact time

    The winner between two programs flips as input size grows, so we study how running time scales rather than exact milliseconds.

    The problem it solves

    Program A takes ms and Program B takes ms. At , B wins. At , A wins by a factor of $100$. Exact time depends on machine, language and constants. What survives across machines is how running time scales when grows.

    The idea made exact

    A program with running time beats one with running time for all sufficiently large , regardless of machine constants.

    limit as

    Comparing growth by the ratio limit

    Derivation

    Comparing growth by the ratio limit

    Two positive functions are compared by the limit of their ratio as tends to infinity.

    for large for large
    1. Form the ratio . this isolates relative growth.
    2. Compute using algebra or L'Hopital's rule. the limit captures eventual behavior.
    3. If the limit is , grows faster. If the limit is a positive constant , they grow at the same rate. If the limit is $0$, grows faster. the three outcomes partition all cases.

    Apply to and . The ratio is , which tends to $0$. So grows faster than .

    Result
    CHECK

    Substitute . Then and . The ratio , consistent with dominating.

    The hierarchy of common growth rates

    Derivation

    The hierarchy of common growth rates

    For constants , and , the chain constant holds as .

    1. Compare and . Substitute . Then and . the ratio tends to $0$ since exponentials beat polynomials in .
    2. Compare and . Take logarithms: versus . by Step 1, grows slower than , so for large . Exponentiating preserves order.
    3. Chain the inequalities. Constant by Step 1 with small. the rest follows by transitivity.
    Result
    CHECK

    At the boundary and , the chain still holds: eventually beats .

    30 more cards in this chapter

    Free preview ends here

    Login to view the complete notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Asymptotic Notation Notes for CMI M.Sc. and Ph.D. Computer Science

    Asymptotic Notation notes for CMI M.Sc. and Ph.D. Computer Science: 33 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Why we measure growth not exact time

    Intuition

    Why we measure growth not exact time

    The winner between two programs flips as input size grows, so we study how running time scales rather than exact milliseconds.

    The problem it solves

    Program A takes ms and Program B takes ms. At , B wins. At , A wins by a factor of $100$. Exact time depends on machine, language and constants. What survives across machines is how running time scales when grows.

    The idea made exact

    A program with running time beats one with running time for all sufficiently large , regardless of machine constants.

    limit as

    Comparing growth by the ratio limit

    Derivation

    Comparing growth by the ratio limit

    Two positive functions are compared by the limit of their ratio as tends to infinity.

    for large for large
    1. Form the ratio . this isolates relative growth.
    2. Compute using algebra or L'Hopital's rule. the limit captures eventual behavior.
    3. If the limit is , grows faster. If the limit is a positive constant , they grow at the same rate. If the limit is $0$, grows faster. the three outcomes partition all cases.

    Apply to and . The ratio is , which tends to $0$. So grows faster than .

    Result
    CHECK

    Substitute . Then and . The ratio , consistent with dominating.

    The hierarchy of common growth rates

    Derivation

    The hierarchy of common growth rates

    For constants , and , the chain constant holds as .

    1. Compare and . Substitute . Then and . the ratio tends to $0$ since exponentials beat polynomials in .
    2. Compare and . Take logarithms: versus . by Step 1, grows slower than , so for large . Exponentiating preserves order.
    3. Chain the inequalities. Constant by Step 1 with small. the rest follows by transitivity.
    Result
    CHECK

    At the boundary and , the chain still holds: eventually beats .

    Faster for small n does not mean faster forever

    WRONG BELIEF

    If grows faster than , then for every .

    WHY IT FEELS RIGHT

    Students conflate eventual dominance with dominance everywhere. The limit statement only speaks about sufficiently large .

    SMALLEST COUNTEREXAMPLE

    Let and . The ratio , so grows faster. But for , and , so is ten times larger. The crossover happens at , where . Only beyond does exceed .

    COUNTER-RULE

    Growth comparison is a statement about the limit as . It says nothing about any fixed finite .

    HOW IT SHOWS UP IN OPTIONS

    An option claims algorithm A is always slower than B because A has higher asymptotic growth, ignoring that for the given input bound A is actually faster.

    More notes in this unit