English

The red-blue-yellow matching problem

Combinatorics 2026-05-27 v2 Discrete Mathematics

Abstract

We consider the red-blue-yellow matching problem: given two natural numbers kRk_R, kBk_B and a graph GG whose edges are colored red, blue or yellow, the goal is to find a matching of GG that contains exactly kRk_R red edges and exactly kBk_B blue edges, and is of maximum cardinality subject to these constraints. This is a natural generalization of the well known red-blue matching problem, whose complexity status is unknown: although a randomized polynomial-time algorithm exists, a deterministic algorithm has remained elusive for nearly four decades. The best known deterministic approach to the red-blue matching problem, due to Yuster (2012), gives an additive approximation. In this paper, we show a similar result for the red-blue-yellow matching problem, giving a polynomial-time deterministic algorithm that, under natural assumptions, finds a matching satisfying the color requirements almost exactly and has cardinality within 3 of the optimal solution. Our algorithm is a mix of classic linear programming techniques and ad hoc existence results on restricted classes of graphs such as paths and cycles. As a key ingredient, we prove a curious topological property of plane curves, which is a strengthened version of a result by Grandoni and Zenklusen (2010) in the related context of budgeted matchings.

Keywords

Cite

@article{arxiv.2603.18754,
  title  = {The red-blue-yellow matching problem},
  author = {Manuel Aprile and Marco Di Summa},
  journal= {arXiv preprint arXiv:2603.18754},
  year   = {2026}
}
R2 v1 2026-07-01T11:27:51.511Z