Efficient Algorithms For Fully Dynamic Bipartite Matching In Metric Spaces
Pankaj Agarwal ⋅ Oliver Chubet ⋅ Sharath Raghvendra ⋅ Arian Zamani
Abstract
Given two point sets $A$ and $B$ of $n$ points each in a metric space $(\mathbb{X},\mathsf{d})$, a *matching* $M\subseteq A \times B$ is a set of $n$ pairs such that each point of $A\cup B$ appears exactly once in $M$. The $W_p$-cost of $M$ is $(\sum_{(a,b)\in M} \mathsf{d}(a,b)^p)^{1/p}$. $M$ is \textit{$\alpha$-approximate} if its cost is at most $\alpha$ times the minimum cost of a matching of $A$ and $B$. We study the problem of maintaining an $\alpha$-approximate matching of $A$ and $B$ under insertion and deletion of point pairs. For $A,B \subset \mathbb{R}^d$, with $\mathsf{d}(\cdot,\cdot)$ being the $\ell_q$-norm, $q \geq 1$, and for any parameter $\epsilon \in (0,1]$, we present the following two data structures for maintaining a matching under the $W_1$-cost: - The first one maintains an expected $O(d\epsilon^{-3/2})$-approximate matching in amortized update time $\widetilde{O}(n^\epsilon d^{(2/q)+\epsilon}\epsilon^{-2}\varphi(n,\epsilon^{-1/2}))$, where $\varphi(n,\alpha)$ denotes the update and query time of a dynamic $\alpha$-approximate nearest-neighbor data structure under the $\ell_q$-norm. - The second one maintains an expected $O(\epsilon^{-2}d^{|1/q-1/2|}\sqrt{\gamma\log\gamma})$-approximate matching in expected amortized update time $\widetilde O(n^\epsilon+d^2)$, where $\gamma=\min\{d,\log n\}$ and $\widetilde{O}$ hides polylogarithmic factors. For the Euclidean metric ($q=2$), the approximation factor becomes $O(\epsilon^{-2}\sqrt{\gamma\log\gamma})$. \end{itemize} For $A,B$ in an arbitrary finite metric space, any integer $p\geq1$, and any constant $\epsilon\in(0,1)$, we present a fully dynamic data structure that maintains an $O(1/\epsilon)$-approximate matching of $A$ and $B$ under the $W_p$-cost in amortized update time $O(\epsilon^{-1}n^{1+\epsilon}\log n\log\Delta)$, where $\Delta$ is the spread of $A\cup B$.
Successful Page Load