English

Maximizing Diversity in (near-)Median String Selection

Data Structures and Algorithms 2026-02-11 v1

Abstract

Given a set of strings over a specified alphabet, identifying a median or consensus string that minimizes the total distance to all input strings is a fundamental data aggregation problem. When the Hamming distance is considered as the underlying metric, this problem has extensive applications, ranging from bioinformatics to pattern recognition. However, modern applications often require the generation of multiple (near-)optimal yet diverse median strings to enhance flexibility and robustness in decision-making. In this study, we address this need by focusing on two prominent diversity measures: sum dispersion and min dispersion. We first introduce an exact algorithm for the diameter variant of the problem, which identifies pairs of near-optimal medians that are maximally diverse. Subsequently, we propose a (1ϵ)(1-\epsilon)-approximation algorithm (for any ϵ>0\epsilon >0) for sum dispersion, as well as a bi-criteria approximation algorithm for the more challenging min dispersion case, allowing the generation of multiple (more than two) diverse near-optimal Hamming medians. Our approach primarily leverages structural insights into the Hamming median space and also draws on techniques from error-correcting code construction to establish these results.

Keywords

Cite

@article{arxiv.2602.10050,
  title  = {Maximizing Diversity in (near-)Median String Selection},
  author = {Diptarka Chakraborty and Rudrayan Kundu and Nidhi Purohit and Aravinda Kanchana Ruwanpathirana},
  journal= {arXiv preprint arXiv:2602.10050},
  year   = {2026}
}

Comments

Accepted for publication at CPM 2026

R2 v1 2026-07-01T10:30:09.828Z