diff 9506729..b34550f sparse_matching_almost_linear_v2.txt
diff --git a/sparse_matching_almost_linear_v2.txt b/sparse_matching_almost_linear_v2.txt
index b7f381f..dd02587 100644
--- a/sparse_matching_almost_linear_v2.txt
+++ b/sparse_matching_almost_linear_v2.txt
@@ -23,168 +23,6 @@ Two honest notes for the reader.
careful algorithm analysis goes wrong.
-PART I. WHAT A MATCHING IS, AND WHY IT IS HARD
-
-
-1. Matchings
-============
-
-Draw a dot for each person at a party. Connect two dots with a line if
-the corresponding two people would be willing to be paired up. The
-resulting picture is a GRAPH: the dots are VERTICES, the lines are
-EDGES.
-
-A MATCHING is a choice of edges, no two of which share a vertex. In the
-party picture, a matching is a set of "sitting together at dinner"
-pairs, each person in at most one pair. People not in any pair are
-UNMATCHED.
-
-A MAXIMUM MATCHING is a matching with as many pairs as possible. It is
-a theorem (Berge, 1957) that if a matching is not maximum, there is an
-"augmenting path" you can flip to improve it by exactly one pair. That
-criterion is the entire basis of matching algorithms: repeatedly find
-augmenting paths, flip them, and stop when none remains.
-
-Examples to internalize.
-
- Two people, one line. Matching number 1.
- Four people, every pair connected (K_4). Matching number 2. Two
- pairs cover everyone. You cannot have three pairs, since that
- would need six people.
- Five people, every pair connected (K_5). Matching number 2. One
- person is left over. The odd count forces an unmatched vertex.
- One center connected to n leaves (a "star"). Matching number 1. The
- center pairs with only one of its many neighbors.
- Four people in a line, 1-2-3-4. Matching number 2, via the pairs
- {1,2} and {3,4} (or {2,3}, and then 1 and 4 are unmatched).
-
-Matching is not a puzzle from a book. When a hospital assigns residents
-to rotations, when a phone network pairs antennas without interference,
-when a chemist matches bonds under constraints, it is finding a
-maximum matching in some graph. Faster matching algorithms speed up
-all of those applications.
-
-
-2. Why matching is not easy
-===========================
-
-If the graph is BIPARTITE -- its vertices can be colored black and
-white so that every edge has one black end and one white end -- then
-matching has a clean characterization. Hall's theorem (1935) says a
-perfect matching (one that covers every vertex) exists exactly when
-"for every set X of black vertices, X has at least |X| white
-neighbors." That is a real theorem, and it makes BIPARTITE matching
-relatively tractable: search for a set of black vertices with too few
-neighbors, and you find a certificate that no perfect matching exists.
-
-For general graphs, Hall's theorem fails. The smallest counterexample
-is the TRIANGLE -- three vertices, with all three edges between them.
-
- Try to pair all three. You cannot: a matching of size 1 covers two
- of them; the third has no partner. So a triangle has no perfect
- matching.
-
- But look at any single vertex. It has two neighbors. Hall's
- condition "for every subset X, |N(X)| >= |X|" is trivially
- satisfied here; no subset has fewer neighbors than its size.
-
-The obstruction is the ODD CYCLE. Two odd cycles crossing, three odd
-cycles whose pairwise intersections are small, or any combination of
-odd cycles, all act as obstructions.
-
-Tutte's theorem (1947) makes this precise. A graph has a perfect
-matching if and only if, for every subset S of vertices, the number of
-odd-sized connected components of "G with S removed" is at most |S|.
-The odd components are exactly the generalized triangles.
-
-Tutte's theorem gives a criterion but not an algorithm. Turning the
-criterion into a fast algorithm is the entire history of matching.
-
-
-3. Edmonds and the blossom
-==========================
-
-Tutte's theorem is an existence criterion. It does not directly give
-an algorithm. The algorithmic breakthrough came in 1965 from Jack
-Edmonds.
-
-Edmonds' insight was that the odd-set obstruction is "shrinkable."
-When you find an odd cycle of a particular kind during your search, you
-can literally SHRINK it to a single artificial vertex ("a blossom")
-and run your algorithm on the shrunken graph. At the end you "unshrink"
-and read off the matching.
-
-Three operations form the whole algorithm.
-
- Search. Build an "alternating tree": start from an unmatched vertex,
- and alternately add an unmatched edge (which enters a new vertex)
- and then a matched edge (which continues from it). Every vertex in
- the tree is either an "outer" vertex (at even depth, so a free
- edge can emanate) or an "inner" vertex (at odd depth, whose only
- tree-edge-with-lookahead is the matching edge).
-
- Augment. If the search finds an unmatched edge from an outer vertex
- to a free vertex, the tree plus this edge is an "augmenting path".
- Flip every edge along it (unmatched edges become matched, matched
- edges unmatched). The matching size goes up by one.
-
- Shrink. If the search finds an unmatched edge joining two outer
- vertices, the tree cycle that results has odd length. Contract it
- to a single "blossom" vertex and continue. Blossoms cannot be
- avoided; without them, augmenting-path search is not correct on
- general graphs.
-
-Edmonds' algorithm runs one search per augmentation, and there are at
-most n/2 augmentations. Since each search costs O(m) elementary steps,
-the running time is O(mn). That is polynomial, which was a famous
-achievement in the 1960s -- but it is not fast.
-
-The reason each search costs O(m) and not less: you may have to look at
-essentially every edge to be sure no augmenting path exists. Batching
-searches is what Micali and Vazirani did next.
-
-
-4. Micali-Vazirani and the modern baseline
-==========================================
-
-In 1980 Micali and Vazirani batched augmenting paths. Instead of
-finding one augmenting path at a time, they find a MAXIMAL SET OF
-SHORTEST augmenting paths at once, then "grow" the matching by that
-whole batch.
-
-The trick is to do the whole set of shortest augmenting paths with the
-same O(m) search, and then prove that after the batch the next
-shortest augmenting paths are strictly longer. That gives phases: in
-phase k, find all shortest augmenting paths of length 2k+1, augment by
-all of them, and move on. There are at most sqrt(n) phases, because
-after sqrt(n) phases the shortest remaining augmenting path must be
-long -- and once the path is longer than sqrt(n), a "shortcut" argument
-lets you finish the rest of the algorithm with a simpler O(m) pass.
-
-Total: O(m sqrt(n)). This has been the best published bound for
-general graphs for more than four decades.
-
-To summarize the state of the art in a compact table.
-
- For BIPARTITE graphs:
- 1955, 1973: O(mn) and O(m sqrt(n)) -- matching is "easy" here.
- 2013-2022: even faster, using electrical flows and continuous
- optimization. The current bound is essentially (n+m)^{1+o(1)}
- (Chen-Kyng-Liu-Peng-Probst-Sachdeva, 2022), which was a
- breakout result.
-
- For general graphs:
- 1965: O(mn) -- Edmonds.
- 1980: O(m sqrt(n)) -- Micali-Vazirani.
- 1991-2018: weighted matching gets O(m sqrt(n) log W); cardinality
- stays near O(m sqrt(n)).
- 2024: algebraic algorithms at matrix multiplication time.
-
-Until this paper, the gap between bipartite and general graphs was
-substantial: bipartite had an almost-linear algorithm, general did
-not.
-
-
PART II. THE NEW ALGORITHM'S SHAPE