13.07.2015 Views

computing the quartet distance between general trees

computing the quartet distance between general trees

computing the quartet distance between general trees

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 CHAPTER 3. EXPERIMENTAL APPROACHWorst-case <strong>trees</strong> (wc) In a worst-case tree <strong>the</strong>re is one internal node of degree n 2 and n 2internal nodes of degree three, see Figure3.4. The tree has its name from Christiansenand Randers [5], where it was invented with <strong>the</strong> purpose of having a tree that has O(n)internal nodes and O(n) internal edges connected to an internal node of degree O(n).More interesting to this <strong>the</strong>sis is <strong>the</strong> total number of edges, which is |E| = 3 2n. The nameshould not be taken literally, since we do not yet know how <strong>the</strong> algorithms in this <strong>the</strong>siswill perform.Figure 3.4: A wc tree3.2 Tree constructionSince this <strong>the</strong>sis mainly encompasses an experimental approach to evaluating algorithms,I find it natural to describe my choice of data format and data construction.3.2.1 Newick formatThe programs are reading in tree data from files, described in <strong>the</strong> Newick tree format 3which is a commonly used format for representation of phylogenetic <strong>trees</strong>. It is a simpletext format based on paren<strong>the</strong>ses and commas. The grammar in Fig 3.5 provides a formaldescription for parsing <strong>the</strong> Newick format.Tree → Subtree ";"| Branch ";"Subtree → Leaf | InternalLeaf → NameInternal → "("BranchSet ")"NameBranchSet → Branch | BranchSet ","BranchBranch → Subtree LengthName → empty | stringLength → empty | ":"numberFigure 3.5: A context-free grammar for <strong>the</strong> Newick format3 Wikipedia article on <strong>the</strong> Newick format: http://en.wikipedia.org/wiki/Newick_format (accessedOct. 3, 2010)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!