arXiv:2610.01648cs.DSOct 2026

Manuscript Offprint

arXiv:2610.01648

Exact Locality Gaps for Matchable Semi-Matchings

Marek Gałązka, Hanna Wdowicka

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

An assignment of tasks to servers can resist every small improvement and still make tasks wait longer than necessary. We determine exactly how inefficient such an assignment can be when each task requires one unit of service and the eligibility constraints permit all tasks to use distinct servers. For every move size rr and maximum current server load KK, we give a closed formula for the worst ratio between locally optimal and globally optimal total completion time. Local optimality here allows every feasible reassignment changing at most rr tasks. Every finite-cap bound is attained on a tree where each task has at most two eligible servers. Thus the worst behavior already occurs under simple eligibility constraints. At load cap two, the exact ratio is 1+1/(r+2)1 + 1/(r + 2), attained on a path with r+2r + 2 tasks. Without a load cap, the worst-case supremum is 3/23/2 for single-task moves and approximately 1.294503159 for two-task moves; its excess above one is 1/(r+2)+O(2−r/r)1/(r + 2) + O(2^{-r}/r) as rr grows. The proof uses an explicit rational potential on a comparison graph and matching extremal constructions. These results give sharp guarantees for bounded-size local search on matchable semi-matchings, including exact guarantees under degree bounds.

Keywords: Semi-matching; local search; locality gap; load balancing; potential method; extremal trees.

1 Introduction

Suppose that a collection of tasks must be assigned to servers, but each task can use only certain servers. Every task takes one unit of time, and each server processes its assigned tasks one after another. Three tasks sent to one server finish at times one, two and three, with total completion time six. If they can instead use three different servers, their total completion time is three. Eligibility restrictions therefore create a basic optimization problem: distribute the tasks so that they finish as early as possible in total.

A natural local-search procedure repeatedly changes the servers of a few tasks whenever this lowers the total cost. It can stop even though a larger coordinated change would help. We calculate the exact largest loss that can remain at such a stopping point, assuming that the eligibility restrictions permit all tasks to use distinct servers. The answer depends on how many tasks may move together and on how many tasks currently share one server. Our worst examples are trees with at most two choices per task, and even a path exhibits the leading loss. Thus this obstruction to local improvement is present in very simple assignment problems.

For a small example, take three tasks and three servers. The first task can use only the first server; the second can use the first or second; the third can use the second or third. Assign the first two tasks to the first server and the remaining task to the second. The total completion time is four. Moving either eligible task alone leaves that cost unchanged, but moving the second and third tasks together places one task on each server and lowers the cost to three. This example attains our exact 4/3 bound for single-task moves when no server has more than two tasks.

The graph formulation of this problem is a semi-matching: tasks, which we call clients from now on, form one side of a bipartite graph, servers form the other, and edges specify eligibility. An assignment has cost ∑vav(av+1)/2\sum_v a_v(a_v + 1)/2, where ava_v is the number of clients assigned to server vv. An instance is matchable when a matching covers every client, so an assignment with no shared server is feasible. The locality gap is the worst ratio of the cost of a locally optimal assignment to the global optimum. Semi-matchings and their improvement paths were developed in [1, 2].

The usual alternating-path move transfers one unit of load from a starting server to an ending server through a chain of client reassignments, preserving all intermediate loads. The move improves the cost precisely when the starting load exceeds the ending load by at least two. We prove that excluding improving paths moving at most r clients is equivalent to excluding every improving reassignment of at most r clients. This makes the path-based guarantee a guarantee for the full bounded-size neighborhood. Czygrinow et al. [2] analyze short improving paths in a distributed approximation framework. Their Theorem 2 gives 1+1/r1 + 1/r on matchable instances. We replace that upper bound by the exact worst-case ratio on this class, with a matching example for every finite load cap.