Computer Science > Data Structures and Algorithms
[Submitted on 28 Feb 2025]
Title:An Unrestricted Faster Algorithm for Maximum Weight Matching in Bipartite Graphs
View PDF HTML (experimental)Abstract:Given a weighted bipartite graph $G = (L, R, E, w)$, the maximum weight matching (MWM) problem aims to find a matching $M \subseteq E$ that maximizes the total weight $\sum_{e \in M} w(e)$. The widely used Hungarian algorithm efficiently solves the maximum weight perfect matching (MWPM) subproblem for complete bipartite graphs with $|L| = |R|$ and $|E| = |L||R|$, achieving a time complexity of $O(V^3)$, where $V = L \cup R$.
This work demonstrates that the existed non-line-covering variant of the Hungarian algorithm can be directly applied to complete bipartite graphs without vertex expansion, reducing the time complexity from $O(LR^2)$ to $O(L^2R)$ when $|L| < |R|$. Additionally, the variant is extended in this paper to solve the MWM problem for general bipartite graphs.
The time complexity of the proposed algorithm is $O(LE + LR\min(L, X))$, where $X$ is the weight dispersion coefficient. Specifically, if the maximum weight is $N$ and the weights are represented with a precision of $p$, then $X$ is defined as $\frac{N}{p}$. Experimental results highlight significant runtime improvements, especially for sparse graphs, when compared to traditional methods. The detailed implementation of the proposed algorithm is publicly available at this https URL.
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.