Next: The polynomial solution
Up: Sequencing by Hybridization
Previous: Sequencing by Hybridization
The naive approach
Let us define a directed graph G=(V,E), where
and an edge
e=(v1,v2) exists iff the last k-1 characters of v1 match
the first k-1 characters of v2.
For instance, in our previous example, there will be an edge from ATG to
TGC.
The problem is now to find a Hamiltonian path in the directed graph G.
However, as we should all be aware, the traveling salesman problem is NP-hard.
Therefore, this solution cannot be used for large input sets. While
approximations and heuristics for the TSP exist, no true computer scientist
will be satisfied with this solution.
Itshack Pe`er
1999-03-16