If T1 and T2 are both unrooted binary trees on the same n taxa, then we now let q(T1,T2)
denote the number of inferred quartets that are common to both trees.
The quartet distance between T1 and T2, dq(T1,T2) is the number of
quartets that are only inferred from one of the trees. More precisely, dq(T1,T2)=q(T1)+q(T2)−2q(T1,T2).
Given: A list containing n taxa (n≤2000) and two unrooted binary trees T1 and T2
on the given taxa. Both T1 and T2 are given in Newick format.