1 / 10

McCrieght’s algorithm for linear-time suffix tree construction

McCrieght’s algorithm for linear-time suffix tree construction. Example. Example string: AAAAAAA. Conventions: T i corresponds to the tree after i iterations. Suffix numbering and string indexing starts from 1 and ends at n.

pancho
Download Presentation

McCrieght’s algorithm for linear-time suffix tree construction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. McCrieght’s algorithm for linear-time suffix tree construction Example

  2. Example string: AAAAAAA • Conventions: • Ticorresponds to the tree after i iterations. • Suffix numbering and string indexing starts from 1 and ends at n. • Only for convenience in presentation, edge-labels are shown as strings. In the implementation, it is assumed that edge-labels are stored as a pair of integers. T1: Initial tree: Denotes suffix links T0: root

  3. Example string: AAAAAAA Iteration: 1 T1: T0: root root A A A A A A A $ For this iteration: 1

  4. Example string: AAAAAAA Iteration: 2 T1: T2: root root A A A Case IB A A A A A A A A A A A $ $ $ For this iteration: 2 1 1

  5. Example string: AAAAAAA Iteration: 3 T2: T3: root root A A A Case IIB A A A A A A A A A $ A $ A $ $ 3 $ For this iteration: 2 2 1 1 =AAAAAA = A ’

  6. Example string: AAAAAAA Iteration: 4 T3: T4: root root A A A Case IIB A A A A A A A $ A $ A $ 4 A $ A $ 3 $ 3 $ For this iteration: 2 2 1 1 =AAAAA = A ’

  7. Example string: AAAAAAA Iteration: 5 T4: T5: root root A A A Case IIB A A A A A $ A $ A $ 5 A $ A 4 $ 4 A $ A $ 3 $ 3 $ For this iteration: 2 2 1 1 =AAAA = A ’

  8. Example string: AAAAAAA Iteration: 6 T5: T6: root root A A A Case IIB A A A A $ $ A $ A $ A 6 5 $ 5 A $ A 4 $ 4 A $ A $ 3 $ 3 $ For this iteration: 2 2 1 1 =AAA = A ’

  9. Example string: AAAAAAA Iteration: 7 T6: T7: root root A A A Case IIB A $ A $ A A $ $ A $ 7 A 6 $ A 6 5 $ 5 A $ A 4 $ 4 A $ A $ 3 $ 3 $ For this iteration: 2 2 1 1 =AA = A ’

  10. Example string: AAAAAAA Iteration: 8 T7: T8: root root A $ A A Case IIB $ A $ A $ 8 A A $ $ 7 A $ 7 A 6 $ A 6 5 $ 5 A $ A 4 $ 4 A $ A $ 3 $ 3 $ For this iteration: 2 2 1 1 =A = A ’

More Related