Search arXiv⌕ Search

arXiv · 1807.06469

On Computing Centroids According to the $p$-Norms of Hamming Distance Vectors

Abstract

In this paper we consider the $p$-Norm Hamming Centroid problem which asks to determine whether some given binary strings have a centroid with a bound on the $p$-norm of its Hamming distances to the strings. Specifically, given a set of strings $S$ and a real $k$, we consider the problem of determining whether there exists a string $s^*$ with $\big(\sum_{s \in S}d^p(s^*,s)\big)^{1/p} \leq k$, where $d(,)$ denotes the Hamming distance metric. This problem has important applications in data clustering, and is a generalization of the well-known polynomial-time solvable \textsc{Consensus String} $(p=1)$ problem, as well as the NP-hard \textsc{Closest String} $(p=\infty)$ problem. Our main result shows that the problem is NP-hard for all fixed rational $p > 1$, closing the gap for all rational values of $p$ between $1$ and $\infty$. Under standard complexity assumptions the reduction also implies that the problem has no $2^{o(n+m)}$-time or $2^{o(k^{\frac{p}{(p+1)}})}$-time algorithm, where $m$ denotes the number of input strings and $n$ denotes the length of each string, for any fixed $p > 1$. Both running time lower bounds are tight. In particular, we provide a $2^{k^{\frac{p}{(p+1)}+\varepsilon}}$-time algorithm for each fixed $\varepsilon > 0$. In the last part of the paper, we complement our hardness result by presenting a fixed-parameter algorithm and a factor-$2$ approximation algorithm for the problem.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jiehua Chen, Danny Hermelin, Manuel Sorge. 2019-06-26. On Computing Centroids According to the $p$-Norms of Hamming Distance Vectors. https://arxiv.org/abs/1807.06469

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Classifying Approximation Algorithms: Understanding the APX Complexity Class

Many NP-hard optimization problems that are equivalent under Karp reductions behave very differently when we ask for polynomial-time approximations. This paper studies the complexity class APX, a subclass of NPO consisting of optimization problems that admit polynomial-time algorithms with constant-factor approximation guarantees. We first review the formal structure of NPO, define L-reductions and PTAS-reductions, and prove that L-reductions preserve polynomial-time approximation schemes (PTAS). Using the Probabilistically Checkable Proofs (PCP) theorem as a starting point, we present self-contained L-reductions establishing the APX-completeness of Max-3SAT, Max-2SAT, Max-NAE-3SAT, and Max-Cut, and we situate APX within the broader hierarchy FPTAS, PTAS, APX, logAPX, and polyAPX. We then examine structural consequences of the polynomial hierarchy for self-improvability and APX-intermediate problems such as Min-Bin-Packing, and review how APX-hardness arises in Bayesian optimal mechanism design for three-bidder single-item auctions. Turning to algorithm design, we analyze three core techniques across the APX and logAPX boundary: linear programming relaxation with Raghavan-Thompson randomized rounding for multicommodity congestion minimization, Goemans-Williamson semidefinite programming rounding for Max-Cut, and greedy, dual-fitting, and randomized rounding methods for Min-Set-Cover. We close by discussing bounded-query approximation oracles and recent constant-factor and sub-3/2 advances on the asymmetric and metric traveling salesman problems.

cs.CC↗

Metric Dimension is NP-complete on Graphs of Treewidth Two

The metric dimension of a connected graph is the least number of vertices whose distance vectors distinguish all vertices. We show that deciding whether the metric dimension of a graph is at most a given integer is NP-complete on graphs of treewidth at most two, and even on two-connected two-terminal series-parallel graphs of pathwidth at most five. As the problem is polynomial on trees, the graphs of treewidth one, this settles the treewidth threshold of its hardness, which was known to lie between two and twenty-four. The reduction is from satisfiability of formulas in which every literal occurs at most twice. To such a formula with $n$ clauses and $r$ variables it associates a two-terminal series-parallel graph $G_φ$ with $O((n+r)^2)$ vertices and pathwidth at most five, whose metric dimension is $2(n+r)+7$ if the formula is satisfiable and $2(n+r)+8$ otherwise.

cs.CC↗

The Computational Complexity of Counting Linear Regions in ReLU Neural Networks

An established measure of the expressive power of a given ReLU neural network is the number of linear regions into which it partitions the input space. There exist many different, non-equivalent definitions of what a linear region actually is. We systematically assess which papers use which definitions and discuss how they relate to each other. We then analyze the computational complexity of counting the number of such regions for the various definitions. Generally, this turns out to be an intractable problem. We prove NP- and #P-hardness results already for networks with one hidden layer and strong hardness of approximation results for two or more hidden layers. Finally, on the algorithmic side, we demonstrate that counting linear regions can at least be achieved in polynomial space for some common definitions.

cs.CC↗