Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 25 of 34

Pair an optimal matching with a vertex cover

Prove Kőnig’s equality using alternating paths.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

A matching of size two proves that two simultaneous assignments are possible, but not that three are impossible. A vertex cover of size two supplies the missing upper bound: every edge meets the cover, so no matching can contain more than two disjoint edges. In bipartite graphs, Kőnig’s theorem guarantees that a maximum matching and a minimum cover have the same size. This produces a pair of independently checkable optimality certificates.

Predict

Predict why the cover bound works in every graph but equality may fail outside bipartite graphs. A triangle has maximum matching size one, while every cover needs two vertices. The weak inequality remains true because distinct matching edges require distinct covering vertices. The equality needs the alternating-reachability construction and its bipartite orientation.

Experiment

For a star with four leaves, compare several covers.

CandidateCovers every edge?Size
Center aloneYes1
All leavesYes4
One leafNo1

Any one edge is a matching of size one. The center cover and that matching certify optimality; a large cover alone would give only a weak bound.

Understand

Let M be a maximum matching in a finite bipartite graph with parts L, R. Start alternating searches from every unmatched left vertex, using nonmatching edges left-to-right and matching edges right-to-left. Write Z_L, Z_R for the reached vertices. Define C=(L outside Z_L) union Z_R. To prove it covers every edge, suppose an edge goes from a reached left vertex to an unreached right vertex. If it is outside M, the search would traverse it. If it belongs to M, the reached left vertex is not an unmatched root and was reached from its matching partner, again a contradiction. Thus no edge is uncovered.

Apply

Every matched edge has either both endpoints reached or neither: traversal gives one direction, and a reached matched left vertex was reached through its partner. Therefore each matched edge contributes exactly one endpoint to C. Unmatched left vertices are roots and hence excluded from C. No unmatched right vertex is reached, since that would supply an augmenting path. Consequently size (C)=size (M). Combined with the universal matching-cover inequality, this proves Kőnig’s theorem. It also completes the earlier matching-based proof of Dilworth’s chain-partition theorem.

Continue

A maximum matching can be found by repeatedly searching for an augmenting path and flipping it. Berge’s criterion proves the stopping condition: the symmetric difference of a current matching with a larger one consists of alternating paths and cycles, and some path must have an excess edge from the larger matching. A straightforward search costs O(V+E) per augmentation, with at most min (size (L), size (R)) augmentations; more sophisticated layered methods improve this bound. State which algorithm is implemented rather than attaching the fastest known complexity to a simple search. Verify the final cover and matching directly, independently of the search history.

Return to the combinatorics and graph theory unit for prerequisite choices and targeted retries. Continue with explain the extra obstruction in general matching.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

A bipartite graph has a matching of size 4 and a vertex cover of size 4. Find its maximum matching size.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Find the minimum vertex-cover size of a star with five leaves.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Prove any matching has size at most any vertex cover.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For maximum bipartite M and alternating reachable sets Z_L, Z_R from all unmatched left vertices, prove (L minus Z_L) union Z_R is a cover.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove that cover has size equal to size (M).

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove a matching is maximum iff it has no augmenting path.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.