chapter

    Solving Recurrences Short Notes for Cmi M.sc. and Ph.d. Computer Science

    Solving Recurrences short notes for CMI M.Sc. and Ph.D. Computer Science: 18 study cards covering concepts, formulas, shortcuts and exam traps, plus solved pr

    Solving Recurrences short notes

    If You See This Do This

    If you see this do this
    If you seeDo this
    "set up a recurrence"identify the subproblem of size and how it reduces to smaller subproblems
    "what is the order"find the largest such that appears
    "is it linear"check no -value is squared or multiplied by another -value
    "constant coefficients"check multipliers of -values are numbers, not functions of
    "homogeneous"check no leftover term free of on the right side
    "verify a closed form"check base case, then substitute the formula into the recurrence
    "how many initial conditions"equal to the order of the recurrence

    Formulas and Their Limits

    Formulas and their limits
    FormulaValid whenBreaks when
    and no -value appears on the right
    Order needs initial conditions the recurrence is order fewer conditions are given
    Verify closed form by inductionbase case and recurrence step both holdonly a few values are checked
    Linear means each -value to the first powerno products or powers of appear-values are multiplied or raised to a power

    Three Second Sanity Checks

    Three second sanity checks
    CheckEliminates
    Base case check: plug into the closed form, compare with closed forms with wrong constants
    Recurrence step check: substitute the closed form into both sidesclosed forms that fit a few values but not all
    Order check: count the furthest-back indexclaims that an order-2 recurrence has a unique solution with one condition
    Dimension check: if counts moves, must be a non-negative integerclosed forms that give fractions or negatives

    15 more cards in this chapter

    Free preview ends here

    Login to view the complete short 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.

    Solving Recurrences Short Notes for CMI M.Sc. and Ph.D. Computer Science

    Solving Recurrences short notes for CMI M.Sc. and Ph.D. Computer Science: 18 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    If You See This Do This

    If you see this do this
    If you seeDo this
    "set up a recurrence"identify the subproblem of size and how it reduces to smaller subproblems
    "what is the order"find the largest such that appears
    "is it linear"check no -value is squared or multiplied by another -value
    "constant coefficients"check multipliers of -values are numbers, not functions of
    "homogeneous"check no leftover term free of on the right side
    "verify a closed form"check base case, then substitute the formula into the recurrence
    "how many initial conditions"equal to the order of the recurrence

    Formulas and Their Limits

    Formulas and their limits
    FormulaValid whenBreaks when
    and no -value appears on the right
    Order needs initial conditions the recurrence is order fewer conditions are given
    Verify closed form by inductionbase case and recurrence step both holdonly a few values are checked
    Linear means each -value to the first powerno products or powers of appear-values are multiplied or raised to a power

    Three Second Sanity Checks

    Three second sanity checks
    CheckEliminates
    Base case check: plug into the closed form, compare with closed forms with wrong constants
    Recurrence step check: substitute the closed form into both sidesclosed forms that fit a few values but not all
    Order check: count the furthest-back indexclaims that an order-2 recurrence has a unique solution with one condition
    Dimension check: if counts moves, must be a non-negative integerclosed forms that give fractions or negatives

    If You See This Do This

    If you seeDo this
    Recurrence Guess form from and branching factor
    Substitution leaves positive residualMultiply guess by
    Base case fails the boundIncrease constant or shift base case
    Proving Prove upper and lower bounds separately
    Multiple recursive calls with different sizesGuess form from largest subproblem

    More short notes in this unit