A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Matroid Intersection

Research Depth 100 in the knowledge graph I know this Set as goal
1topic build on this
575prerequisites beneath it
See this on the map →
Advanced Network Flow AlgorithmsGreedy Algorithms+1 moreSubmodular Optimization
matroids matroid-intersection combinatorial-optimization polyhedral-combinatorics

Core Idea

A matroid is a combinatorial structure that captures the notion of "independence" — generalizing linear independence in vector spaces and acyclicity in graphs. The matroid intersection problem asks: given two matroids on the same ground set, find a maximum-weight common independent set. This elegant framework unifies many classical optimization problems: bipartite matching is the intersection of two partition matroids; colorful spanning forests arise from graphic and partition matroid intersection. While a single matroid's optimization is solved by greedy (this is essentially what defines matroids), intersecting two matroids requires augmenting-path techniques analogous to network flow. The matroid intersection theorem states that the maximum common independent set size equals the minimum of a certain dual quantity, yielding a min-max theorem generalizing König's theorem.

Explainer

Matroids are the combinatorial structures that make the greedy algorithm work. Formally, a matroid is a pair (E, I) where E is a ground set and I is a collection of "independent" subsets satisfying three axioms: the empty set is independent, subsets of independent sets are independent (hereditary property), and if one independent set is larger than another, some element of the larger set can be added to the smaller (exchange property). The exchange property is what guarantees the greedy algorithm — always add the heaviest available element that maintains independence — finds a maximum-weight independent set.

Examples ground the abstraction. In a graphic matroid, E is the edge set of a graph and independent sets are acyclic subsets (forests). The greedy algorithm on a graphic matroid is Kruskal's MST algorithm. In a partition matroid, E is partitioned into groups and an independent set contains at most one element from each group. In a linear matroid, E is a set of vectors and independent sets are linearly independent subsets. Each captures a different flavor of "independence," but all satisfy the same axioms and all respond to greedy.

Matroid intersection asks for the largest (or heaviest) set that is independent in two matroids simultaneously. This is strictly harder than single-matroid optimization but still polynomial. The algorithm builds an exchange graph: nodes are ground set elements, and directed edges represent swaps that maintain independence in one matroid or the other. Augmenting paths in this exchange graph (from an element addable in M1 to one addable in M2) yield improved common independent sets via symmetric differences. This is the matroid generalization of augmenting-path algorithms for bipartite matching, and the connection is exact: bipartite matching equals partition-matroid intersection.

The matroid intersection theorem provides the min-max dual: max |common independent set| = min_{A subset E} (r_1(A) + r_2(E\A)), where r_1, r_2 are the rank functions. This generalizes König's theorem and provides optimality certificates. The polynomial tractability of 2-matroid intersection versus the NP-hardness of 3-matroid intersection is a fundamental boundary in combinatorial optimization — it shows that the structure of two matroids interacting is rich enough to capture bipartite matching, spanning trees, and arborescences, but adding a third matroid pushes into NP-hard territory (capturing Hamiltonian paths).

Practice Questions 4 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraBoolean Type and Truth ValuesComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsLogic Gates FundamentalsImplementing Boolean Functions with GatesKarnaugh Map SimplificationCombinational Circuit DesignFlip-Flops and LatchesFinite State Machines (FSMs)Deterministic Finite Automata (DFA)Nondeterministic Finite Automata (NFA)Two-Way Finite AutomataNFA to DFA Conversion (Subset Construction)DFA Properties and Minimization AlgorithmsRegular Languages: Definition and CharacterizationContext-Free Grammars (CFGs)Pushdown Automata (PDA)Equivalence of CFGs and Pushdown AutomataClosure Properties of Context-Free LanguagesLimitations of Context-Free LanguagesPumping Lemma for Context-Free LanguagesTuring MachinesVariants of Turing Machines and EquivalenceNondeterministic Time Complexity and NPThe P vs. NP ProblemComplexity Class P: Polynomial TimeComplexity Class NP: Nondeterministic Polynomial TimeNP-Completeness and Cook-Levin TheoremLinear Programming AlgorithmsAdvanced Network Flow AlgorithmsMatroid Intersection

Longest path: 101 steps · 575 total prerequisite topics

Prerequisites (3)

Leads To (1)