请输入您要查询的百科知识:

 

词条 Closest string
释义

  1. Formal definition

  2. Motivation

  3. Simplifications and data reductions

     Normalizing the input  Example  Data reduction obtained from normalization 

  4. Approximability

  5. Fixed-parameter tractability

  6. Relations to other problems

  7. References

In theoretical computer science, the closest string is an NP-hard computational problem,[1] which tries to find the geometrical center of a set of input strings.

To understand the word "center", it is necessary to define a distance between two strings. Usually, this problem is studied with the Hamming distance in mind.

Formal definition

More formally, given n length-m strings s1, s2, ..., sn, the closest string problem seeks for a new length-m string s such that d(s,si) ≤ k for all i, where d denotes the Hamming distance, and where k is as small as possible.[2] A decision problem version of the closest string problem, which is NP-complete, instead takes k as another input and questions whether there is a string within Hamming distance k of all the input strings.[1]

The closest string problem can be seen as a special case of the generic 1-center problem in which the distances between elements are measured using Hamming distance.

Motivation

In bioinformatics, the closest string problem is an intensively studied facet of the problem of finding signals in DNA.

Simplifications and data reductions

Instances of closest string may contain information that is not essential to the problem. In some sense, the usual input of closest string contains information, that does not contribute to the hardness of the problem. For example, if some strings contain the character a, but none contains the character z, replacing all as with zs would yield an essentially equivalent instance, that is: from a solution of the modified instance, the original solution can be restored, and vice versa.

Normalizing the input

When all input strings that share the same length are written on top of each other, they form a matrix. Certain row types have essentially the same implications to the solution. For example, replacing a column with entries (a, a, b) with another column (x, x, y) might lead to a different solution string, but cannot affect solvability, because both columns express the same structure, viz. the first two entries being equal, but different from the third one.

An input instance can be normalized by replacing, in each column, the character that occurs the most often with a, the character that occurs the second most often with b, and so forth. Given a solution to the normalized instance, the original instance can be found by remapping the characters of the solution to its original version in every column.

The order of the columns does not contribute to the hardness of the problem. That means, if we permute all input strings according to a certain permutation π and obtain a solution string s to that modified instance, then π−1(s) will be a solution to the original instance.

Example

Given an instance with three input strings uvwx, xuwv, and xvwu. This could be written as a matrix like this:

u v w x
x u w v
x v w u

The first column has the values (u, x, x). As x is the character that appears the most often, we replace it by a, and we replace u, the second most often character, by b, obtaining the new first column (b, a, a). The second column has the values (v, u, v). As for the first column, v is replaced by a and u is replaced by b, obtaining the new second column (a, b, a). Doing the same with all columns gives the normalized instance

b a a a
a b a b
a a a c

Data reduction obtained from normalization

Normalizing the input reduces the alphabet size to at most the number of input strings. This can be useful for algorithms whose running times depend on the alphabet size.

Approximability

Li et al. evolved a polynomial-time approximation scheme[3] which is practically unusable because of the large hidden constants.

Fixed-parameter tractability

Closest String can be solved in , where k is the number of input strings, L is the length of all strings and d is the desired maximum distance from the solution string to any input string.[4]

Relations to other problems

Closest string is a special case of the more general closest substring problem, which is strictly more difficult. While closest string turns out to be fixed-parameter tractable in a number of ways, closest substring is W[1]-hard with regard to these parameters.

References

1. ^{{citation | last1 = Lanctot | first1 = J. Kevin | last2 = Li | first2 = Ming | last3 = Ma | first3 = Bin | last4 = Wang | first4 = Shaojiu | last5 = Zhang | first5 = Louxin | doi = 10.1016/S0890-5401(03)00057-9 | issue = 1 | journal = Information and Computation | mr = 1994748 | pages = 41–55 | title = Distinguishing string selection problems | volume = 185 | year = 2003}}
2. ^{{citation| title=More Efficient Algorithms for Closest String and Substring Problems| authors=Bin Ma and Xiaming Sun| url=http://www.csd.uwo.ca/~bma/CS873/recomb2008.pdf| year=2008| booktitle=Proc. 12th Ann. Int. Conf. on Research in Computational Molecular Biology (RECOMB)| publisher=Springer |series= LNCS |volume=4955| pages= 396-409 | doi= 10.1007/978-3-540-78839-3_33 }}
3. ^{{citation| authors=M. Li, B. Ma, and L. Wang. |title=On the Closest String and Substring Problems.|journal= Journal of the ACM | volume=49|issue=2|pages=157-171|year=2002|url=http://www.cs.cityu.edu.hk/~lwang/research/jacm02.pdf|doi=10.1145/506147.506150|arxiv=cs/0002012}}
4. ^{{citation|title=Fixed-Parameter Algorithms for Closest String and Related Problems|authors=Jens Gramm, Rolf Niedermeier, and Peter Rossmanith|journal=Algorithmica |year=2003| volume=37|pages=25–42| url=http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.61.736|doi=10.1007/s00453-003-1028-3}}

2 : NP-hard problems|Formal languages

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 12:00:16