chapter
    Minimum Spanning Trees and Shortest Paths Short Notes for GATE CS

    Minimum Spanning Trees and Shortest Paths short notes for GATE CS: 9 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice q

    minimum spanning trees and shortest paths short notes

    Exam Day Summary: MST Properties

    MST Properties Cheat Sheet

    • Cut Property: Lightest edge across a cut IN the MST.
    • Cycle Property: Heaviest edge in a cycle OUT of the MST.
    • Uniqueness: All distinct weights Exactly ONE unique MST.
    • Global Min Edge: Absolute lightest edge in Always IN every MST.
    • Threshold Inclusion: Edge is in every MST weight() max weight on minimax path between its endpoints.
    • Multiple MSTs: Different trees, but identical sorted sequence of edge weights.

    Formula Matrix

    Formula Matrix

    MST Edge Count
    Exactly
    Weight Invariance
    invariant under tie-breaking
    Component Counting
    where is multigraph at weight
    Matrix Tree Theorem
    for any
    Cayley's Formula

    If You See This, Do This

    If You See This, Do This

    "lexicographical tie-breaking"
    Sort by vertex label before cycle check
    "starting vertex specified"
    Prim's; update frontier deterministically
    "number of distinct MSTs"
    Isolate components at weight ; count multigraph trees
    "forced edge in MST"
    Contract edge; run MST on remainder; add forced weight
    "all edges weight "
    Count spanning trees of (Matrix Tree / Cayley)
    "swapping edges"
    Check if they form a cycle with same max weight

    6 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.

    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.

    Minimum Spanning Trees and Shortest Paths Short Notes for GATE CS

    Minimum Spanning Trees and Shortest Paths short notes for GATE CS: 9 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Exam Day Summary: MST Properties

    MST Properties Cheat Sheet

    • Cut Property: Lightest edge across a cut IN the MST.
    • Cycle Property: Heaviest edge in a cycle OUT of the MST.
    • Uniqueness: All distinct weights Exactly ONE unique MST.
    • Global Min Edge: Absolute lightest edge in Always IN every MST.
    • Threshold Inclusion: Edge is in every MST weight() max weight on minimax path between its endpoints.
    • Multiple MSTs: Different trees, but identical sorted sequence of edge weights.

    Formula Matrix

    Formula Matrix

    MST Edge Count
    Exactly
    Weight Invariance
    invariant under tie-breaking
    Component Counting
    where is multigraph at weight
    Matrix Tree Theorem
    for any
    Cayley's Formula

    If You See This, Do This

    If You See This, Do This

    "lexicographical tie-breaking"
    Sort by vertex label before cycle check
    "starting vertex specified"
    Prim's; update frontier deterministically
    "number of distinct MSTs"
    Isolate components at weight ; count multigraph trees
    "forced edge in MST"
    Contract edge; run MST on remainder; add forced weight
    "all edges weight "
    Count spanning trees of (Matrix Tree / Cayley)
    "swapping edges"
    Check if they form a cycle with same max weight

    Traps and Invariants

    Traps and Invariants

    Global multiplication of equal-weight edges. Check: Isolate independent components at current weight.
    Unique weight unique edge set. Check: Cycle with 2, 2, 3 has weight 4 but two MSTs.
    Equal-weight edge forming cycle with lower weights. Check: Heaviest edge in any cycle cannot be in MST.

    More short notes in this unit