We study exact one-center optimization for axis-parallel segments using axis-parallel squares under endpoint-based coverage, where a segment is \emph{-covered} if the square contains at least one of its endpoints. In the monochromatic problem, we seek a minimum-side-length square that -covers all input segments. We obtain -time algorithms for both unrestricted and segment-constrained centers. The unrestricted bound matches the known bound implied by the two-representative color-spanning-square problem, whereas the segment-constrained result is new. We also prove matching lower bounds for both center models in the fixed-order algebraic decision-tree model. In the bichromatic problem, an admissible square must fully contain all blue segments, minimize the number of red segments with an endpoint in its interior, and, subject to this minimum, maximize its side length within a prescribed bounding box. We give deterministic -time and -time algorithms for unrestricted and blue-segment-constrained centers, respectively.

生成讲解博客的中文版本

生成AI智能校验的中文版本