computing the quartet distance between general trees
computing the quartet distance between general trees
computing the quartet distance between general trees
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Appendix APreprocessing for <strong>the</strong> sub-cubicalgorithmIn this appendix I will list <strong>the</strong> details of <strong>the</strong> preprocessing steps omitted in <strong>the</strong> descriptionof <strong>the</strong> sub-cubic algorithm in Chap. 7. Though crucial to <strong>the</strong> running time of <strong>the</strong>complete algorithm, <strong>the</strong>y do not support <strong>the</strong> reader in obtaining an overview, and thus,I have chosen to hide <strong>the</strong>m away here.Recall from Sec. 7.1.1 <strong>the</strong> matrix I which is storing a subset of <strong>the</strong> table of shared leafset sizes <strong>between</strong> two <strong>trees</strong>. All remaining preprocessing arrays and tables are results offur<strong>the</strong>r processing <strong>the</strong> information in I . Since <strong>the</strong> information is making little sense byitself, <strong>the</strong> naming conventions have been kept simple and are not very explanatory.Row and column sums and <strong>the</strong> sum of all entries of I :R[i ] =d v ′∑j =1I [i , j ]∑d vC [j ] = I [i , j ]M =i=1∑d v d v ′∑i=1 j =1I [i , j ](A.1)(A.2)(A.3)Ano<strong>the</strong>r matrix I ′ , its row sums, column sums and its total sum of entries:I ′ [i , j ] = I [i , j ](M − R[i ] −C [j ] + I [i , j ])R ′ [i ] =d v ′∑j =1I ′ [i , j ](A.4)(A.5)69