next up previous
Next: Happy Cliques Up: An Algorithm for Sorting Previous: Hurdles

   
A New Proof

We will show that for the case of h=0 and d=b-c, there is an O(n2) algorithm for sorting signed permutations by reversals. Our key idea is to prove (constructively) that the following condition is fulfilled for every step of the algorithm:

Condition   $\;$
There exists a reversal r, such that $b(\pi r)-c(\pi r)=b(\pi)-c(\pi)-1$, and the overlap graph of $\pi r$ does not contain unoriented components.

A node in the overlap graph, i.e., a gray edge e in the breakpoint graph, defines the reversal acting on the two black edges adjacent to e. Thus the effect of a reversal r on the overlap graph is as follows:

$\bullet$
Delete the node n that corresponds to the edge defining r.
$\bullet$
Complement the subgraph induced by n's neighbors, switching oriented edges by unoriented ones, and vice versa.

The choice of reversals needs to be a good one, e.g., one that maintains condition 10.10. We must therefore make sure no unoriented components are generated when applying the reversals. Such reversals are called safe.



Peer Itsik
2001-01-17