Temporal matching in trees

2026-06-04Data Structures and Algorithms

Data Structures and AlgorithmsDiscrete Mathematics
AI summary

The authors explore problems about finding the largest sets of matching edges in graphs that change over time, specifically when the underlying graph is a tree. They study two models, one where matching edges must be spaced out by a certain time difference (Δ-matching) and another where matches are blocks of consecutive appearances (γ-matching). They prove that these problems are generally hard (NP-hard and APX-hard) even in simple cases, but identify some special cases where efficient solutions exist. The authors also develop approximation schemes and dynamic programming methods to tackle these problems under certain conditions.

temporal graphmaximum matchingΔ-matchingγ-matchingd-distance matchingNP-hardnessAPX-hardnessdynamic programmingapproximation schemebipartite graph
Authors
Márk Hunor Juhász, Péter Madarasi
Abstract
We study maximum matching problems in temporal graphs whose underlying graph is a tree. We consider two temporal models. In a $Δ$-matching, selected time edges sharing an endpoint must have time ticks differing by at least $Δ$. In a $γ$-matching, the selected objects are blocks of $γ$ consecutive appearances of the same underlying edge. We also consider the related ordered static problem of $d$-distance matchings. We show that maximum $Δ$-matching remains NP-hard on temporal trees for every $Δ\geq 2$, even in the sparse case where each edge appears at most twice. Using a reduction between the temporal models, we obtain the analogous result for maximum $γ$-matching on temporal trees, even when each edge admits at most two $γ$-edges. We also show, via a reduction from $d$-distance matching, that maximum $γ$-matching is APX-hard even when the underlying graph is bipartite. Complementing these hardness results, we identify several tractable cases. We prove that maximum $Δ$-matching is polynomial-time solvable on temporal trees in which every edge appears exactly once, and that maximum $γ$-matching is polynomial-time solvable when each edge admits at most one $γ$-edge. We also give dynamic-programming algorithms under bounded local-use and local-sparsity assumptions, and derive polynomial-time solvability of maximum $d$-distance matching when the input bipartite graph is a tree. Finally, we prove that both maximum $Δ$-matching and maximum $γ$-matching admit polynomial-time approximation schemes on temporal trees.