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 more→→Submodular 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 Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Nondeterministic Time Complexity and NP → The P vs. NP Problem → Complexity Class P: Polynomial Time → Complexity Class NP: Nondeterministic Polynomial Time → NP-Completeness and Cook-Levin Theorem → Linear Programming Algorithms → Advanced Network Flow Algorithms → Matroid Intersection

Longest path: 101 steps · 575 total prerequisite topics

Prerequisites (3)

Leads To (1)