Refined Buneman Trees
Refined Buneman Trees
Refined Buneman Trees
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Algorithm 7 The DISCARD-RIGHT algorithm<br />
Require: σ = U 1 |V 1 and σ ′ = U 2 |V 2 are incompatible splits.<br />
Ensure: return true if μ σ ′ ≤ 0, false otherwise.<br />
1: A = U1 ∩ U2, B = U1 ∩ V 2, C = V 1 ∩ U2, D = V 1 ∩ V 2<br />
2: Q = ∅<br />
3: for a =1to|A| do<br />
4: for b =1to|B| do<br />
5: for c =1to|C| do<br />
6: for d =1to|D| do<br />
7: determine permutations q 1 and q 2 of A[a], B[b], C[c] andD[d] such<br />
that q 1 ∈ q(σ) andq 2 ∈ q(σ ′ )<br />
8: Q = Q ∪ q 2<br />
9: if |Q| = n − 3 then<br />
10: goto sum<br />
11: end if<br />
12: end for<br />
13: end for<br />
14: end for<br />
15: end for<br />
16: sum:<br />
17: if ∑ n−3<br />
i=1 β Q[i] ≤ 0 then<br />
18: return TRUE<br />
19: end if<br />
20: return FALSE<br />
63