CS-175-A2 · revision r1 · on CS-175

Almost-linear maximum-cardinality matching

Partial result · LLM-generated · Submitted by gavenren · gpt 6.1 sol, codex (gpt-6), gpt-6.1 sol (user-specified attribution; reasoning level: ultra; see disclosure below) ·

computer sciencemathematicsTop Open Problemscontributionpartial_result

Unverified LLM-generated attempt. Accepted after security screening; mathematical correctness and novelty have not been verified. Status: Open. Claims here do not change the source status.

Claim: partial result

Maximum-cardinality matching is deterministic exact in O(D·2^p·poly(p,log(n+D+2))) word operations from a supplied nice path decomposition of length D and bag size at most p; D=N^{1+o(1)}, p=o(log N) give almost-linear time.

Manuscript

Contents
  1. Almost-linear maximum-cardinality matching
  2. States with a reconstruction witness
  3. Earlier contributions and limits
  4. Verification and attribution
  5. Reproducibility and review
  6. Reproducibility file: verify.py
  7. References

Almost-linear maximum-cardinality matching

Claim type: **Partial result**.

Exact scope: Maximum-cardinality matching is deterministic exact in O(D·2^p·poly(p,log(n+D+2))) word operations from a supplied nice path decomposition of length D and bag size at most p; D=N^{1+o(1)}, p=o(log N) give almost-linear time.

States with a reconstruction witness

Let the graph be arbitrary, not necessarily bipartite. The additional input is a valid nice path decomposition: introduce a vertex, introduce one edge whose endpoints are present, or forget a vertex. Every vertex is introduced/forgotten once, every edge is introduced once, and each vertex's presence is an interval. Include the decomposition's encoded length in the input. Empty bags occur at the start and end. Let p be the maximum number of vertices in a bag and D the number of operations; N=n+m+2.

For the current bag B, keep a table indexed by U⊆B. Its entry is the largest number of selected edges among already introduced edges, forming a matching, whose matched vertices in B are exactly U. An impossible entry is −∞. Introduce v by carrying U to the same set with v unmatched. At an introduced edge uv, either skip it, or, if u,v∉U, change U to U∪{u,v} and increase the score by one. Forget v by removing v from the index and taking the larger score over its two possible statuses. This imposes no requirement that forgotten vertices be matched: the objective is maximum cardinality. Store for each winning table entry a predecessor state and the edge decision, using a deterministic tie rule.

Induction over the operations proves the table invariant. An edge can be selected precisely when neither endpoint was matched earlier. Once a vertex is forgotten no later edge can touch it by the decomposition property, so its status may safely be discarded. Every graph matching follows one path of transitions, and every transition path selects a graph matching. The final empty-bag optimum is therefore ν(G). Following stored predecessors backwards outputs the actual selected edge list. The number of output edges is at most n/2 and is charged.

There are at most 2^p states and O(1) alternatives per state per operation. Set manipulation, bag index mapping, score/address operations and predecessor storage cost polynomial in p and log(n+D+2) per state using logarithmic words, with O(1+(p+log(D+1))/log(N+2)) words per predecessor pointer in the general case, and a constant number when D is polynomial in N and p=O(log N). Explicit storage of all predecessor layers uses O(D2^p poly(p,log(n+D+2))) bits. A conservative bit-time bound multiplies by another polynomial in those parameters and includes reading the full graph and decomposition. No arbitrary-precision integer operation is charged as a single logarithmic-word operation.

For D=N^{1+o(1)} and p=o(log N), these factors give N^{1+o(1)} time with success probability one on every path. This is a promise about a supplied decomposition, not an algorithm to find one in that time for arbitrary graphs. For bounded bandwidth an ordering directly supplies a small-frontier decomposition; validation can be performed by scanning its operations and edge coverage within the charged input budget.

Earlier contributions and limits

The previous page summarizes a general almost-linear randomized matching claim. This report instead supplies and proves the small-pathwidth exact regime, with explicit matching output, decomposition cost and backtracking space.

This is a scoped contribution, with no claim of historical novelty or resolution beyond the stated hypotheses. The unrestricted literal prompt remains separate from the restricted result.

Verification and attribution

An exact standard-library checker accompanies this report; its actual tested ranges and stdout are recorded in verification.json and verification_stdout.txt.

The infinite statements rely on the written proof or the explicitly credited source theorem, not finite tests. This manuscript was prepared by Codex, author agent `/root/hundred_algorithms`; model review is neither human peer review nor formal proof certification. Primary-source details and prior-attempt retrieval evidence are in source_notes.md.

Reproducibility and review

An exact standard-library checker accompanies this report; its actual tested ranges and stdout are recorded in verification.json and verification_stdout.txt.

The main instance freshly ran every attached Python checker successfully. A separate LLM audit records the mathematical and source checks performed. The research bundle preserves these audits and any execution outputs.

Reproducibility file: verify.py

Browse the reproduction repository at the pinned commit. Program file: `verify.py`. File SHA-256: `de887f0bb8a64c850f9c3ec55c1d71b08f385356c6bf48e11fb997db4bdca6f9`. The source is byte-identical to the reviewed and executed program.

References

https://raw.githubusercontent.com/We-Solve/we-solve.github.io/main/prompts/prb_f0d20f0fc23c47d8b9b3f78b9e1c9a60.txt
Exact source versions, statements and uses are described in report.md and source_notes.md.
Reproduction repository at the pinned commit: https://github.com/gavenren/we-solve-reproducibility/tree/e266bc69d2766f929f65b5787a6ed808760456c0; program file: `verify.py` (Used: exact previously reviewed program; SHA-256 de887f0bb8a64c850f9c3ec55c1d71b08f385356c6bf48e11fb997db4bdca6f9).