arXiv:2608.22219cs.CGAug 2026

Manuscript Offprint

arXiv:2608.22219

Linear-Time Transformations Between Connectivity Maintenance and Points Spreading on Linear and Cyclic Domains

Nicolás Honorato-Droguett

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

Abstract

Given nn points on a line or closed cycle and a threshold r>0r > 0, the connectivity-maintenance problem is to move the points so that every gap between consecutive points is at most rr, whereas the points-spreading problem requires every gap to be at least rr. Li and Wang [CCCG 2015; CGT 2025] and Chen, Gu, Li, and Wang [SWAT 2012; DCG 2013] gave O(n)O(n)-time algorithms for the cyclic versions of min-max points-spreading and min-max connectivity-maintenance, respectively. Ghadiri and Yazdanbod [CCCG 2016] gave an O(nlog⁡n)O(n \log n)-time algorithm for the linear version of min-sum points-spreading. In this paper, we show that the two problems can be reduced in linear time to each other for both objectives and on both linear and cyclic domains. As an implication, min-sum connectivity-maintenance is solvable in O(nlog⁡n)O(n \log n) time on both domains. Finally, we extend the reduction to points on a line with individual thresholds when their initial order is preserved.

2012 ACM Subject Classification Theory of computation → Computational geometry; Theory of computation → Design and analysis of algorithms

Keywords and phrases points spreading, dispersion problem, connectivity, min-sum, min-max

Acknowledgements I would like to thank Alexander Wolff for the fruitful discussions where the ideas of this paper first came to me.

1 Introduction

In the context of wireless sensor networks, the positions of sensors are crucial to maintaining coverage and connectivity. When their initial positions do not satisfy the required constraints, moving the sensors is one way to improve coverage or connectivity [2, 18, 19]. Even in one-dimensional domains, vehicles or sensors positioned along a road are moved to maintain network connectivity [16], while sensors on a line or closed boundary are moved to establish barrier coverage [1, 5, 13]. By contrast, sensors may be reallocated to reduce interference caused by overlapping sensing ranges [11, 12].

These tasks lead to two movement problems with opposite distance constraints. Given n points on a line or closed cycle and a positive threshold r, in CONNECTIVITY-MAINTENANCE we want to move the points so that every gap between consecutive points in the final order is at most r, whereas in POINTS-SPREADING we wish for every such gap to be at least r. On a closed cycle, distances and movements are measured along the closed cycle, and unlike the linear version, the constraint of CONNECTIVITY-MAINTENANCE applies to every cyclic gap, including the gap between the last and first points [3, 13]. For either problem, the objective is to minimise either the maximum movement of a point or the total movement, giving the min-max and min-sum objectives, respectively.

Although the two problems have opposite distance constraints, they otherwise share the same basic structure. In both problems we are given the same set of points and threshold, allow the same movements, and use the same objective functions. Interestingly enough, this similarity also appears in the known algorithms for the cyclic versions of min-max CONNECTIVITY-MAINTENANCE and POINTS-SPREADING. For CONNECTIVITY-MAINTENANCE, the authors of [3] find a consecutive sequence of points whose gaps are

Transformations Between Connectivity Maintenance and Points Spreading

too large. Their algorithm moves the first and last points of this sequence towards each other, places the points between them at distance r, and then greedily moves the remaining points. For POINTS-SPREADING, the greedy algorithm due to Li and Wang [15] first moves the points in one direction and then shifts all points back by half of the largest movement. The recent approach by Li [13] for min-max CONNECTIVITY-MAINTENANCE follows the same approach, but instead reduces gaps larger than r. In all three approaches, the optimal value is determined by a consecutive sequence of gaps whose total length is too large for CONNECTIVITY-MAINTENANCE or too small for POINTS-SPREADING. Despite this similarity, the two problems considered here have been formulated and studied separately. For the min-sum objective, algorithms are known for POINTS-SPREADING [9,10]. To the best of our knowledge, no similar approach has been given for CONNECTIVITY-MAINTENANCE.

Seeing these similarities, it is natural to ask whether these two problems are, in fact, closely related. Our results show that they are. We give transformations between the two problems in both directions, for both objectives and on both domains, such that the corresponding optimal costs differ only by a scaling factor. Together with the known algorithms for min-sum POINTS-SPREADING, this implies that min-sum CONNECTIVITY-MAINTENANCE is solvable in O(nlog⁡n)O(n \log n) time on a line and a closed cycle.

Related Work Both problems belong to the general study of minimising the movement of geometric objects subject to distance constraints [6]. For min-max POINTS-SPREADING, Dumitrescu and Jiang gave the first polynomial-time algorithms on a line and a closed cycle using linear programming [7]. Li and Wang improved these results to optimal O(n)O(n)-time algorithms on both a line and a closed cycle [15]. Ghadiri and Yazdanbod gave an O(nlog⁡n)O(n \log n)-time algorithm for min-sum POINTS-SPREADING on a line [9]. The authors of [10] later gave an O(nlog⁡n)O(n \log n)-time algorithm on a closed cycle, completing the four cases of POINTS-SPREADING considered here. A related min-max problem asks to move intervals on a line until they are pairwise disjoint. Li and Wang gave an algorithm with optimal runtime of O(nlog⁡n)O(n \log n) for this problem [14]. This problem is equivalent to min-max POINTS-SPREADING with individual thresholds when each point represents the centre of an interval.

For min-max CONNECTIVITY-MAINTENANCE on a line, Li, Yan, and Zhang gave an algorithm that runs in linear time [16]. The closed-cycle version can also be viewed as covering the closed cycle with sensors of equal sensing range. The threshold is then twice the sensing range. An O(n)O(n)-time algorithm for this setting was given in [3]. Li later gave a linear-time algorithm that also obtains a lexicographically optimal solution [13]. To the best of our knowledge, no O(nlog⁡n)O(n \log n)-time algorithms had been given for the linear and cyclic versions of min-sum CONNECTIVITY-MAINTENANCE.

Other work considers the related problem of moving sensors so that their sensing ranges cover a fixed line segment. For the min-sum objective and equal sensing ranges, the authors of [5] gave an O(n2)O(n^2)-time algorithm, later improved by Andrews and Wang to optimal O(nlog⁡n)O(n \log n) time [1]. For the min-max objective, an O(n2)O(n^2)-time algorithm was given in [4]. This bound was improved to O(nlog⁡n)O(n \log n) and to O(n)O(n) when all sensors are initially on the barrier [3]. For arbitrary sensing ranges, the min-sum problem is hard to approximate within any constant factor [5]. The authors of [8] strengthened this hardness and gave approximation and parameterised results. Mehrandish, Narayanan, and Opatrny instead considered minimising the number of sensors moved, giving polynomial-time algorithms for equal ranges and proving hardness for unequal ranges [17].

Table 1 Overview of runtimes for CONNECTIVITY-MAINTENANCE and POINTS-SPREADING. Results marked with ⋆\star are the runtimes implied by the results of this paper.

DomainObjectiveConnectivity-MaintenancePoints-Spreading
Linemin-maxO(n) [16]O(n)\ [16]O(n) [15]O(n)\ [15]
min-sumO(nlog⁡n)⋆O(n\log n)\starO(nlog⁡n) [9]O(n\log n)\ [9]
Closed cyclemin-maxO(n) [3,13]O(n)\ [3,13]O(n) [15]O(n)\ [15]
min-sumO(nlog⁡n)⋆O(n\log n)\starO(nlog⁡n) [10]O(n\log n)\ [10]

Our Results We give transformations between CONNECTIVITY-MAINTENANCE and POINTS-SPREADING in both directions. These transformation apply to both objectives and the obtained optimal costs differ only by a scaling factor. We first prove the result on a closed cycle (Section 3) and then on a line (Section 4). Together with the known min-sum algorithms for POINTS-SPREADING, they imply that min-sum CONNECTIVITY-MAINTENANCE is solvable in O(nlog⁡n)O(n\log n) time on both domains. We also extend the linear result to individual thresholds when the final positions are required to preserve their initial order (Section 5). Finally, we give open problems in Section 6. Table 1 summarises the known runtimes together with our results.