Papers
Topics
Authors
Recent
Search
2000 character limit reached

Linear-time Computation of DAWGs, Symmetric Indexing Structures, and MAWs for Integer Alphabets

Published 4 Jul 2023 in cs.DS and cs.FL | (2307.01428v1)

Abstract: The directed acyclic word graph (DAWG) of a string yy of length nn is the smallest (partial) DFA which recognizes all suffixes of yy with only O(n)O(n) nodes and edges. In this paper, we show how to construct the DAWG for the input string yy from the suffix tree for yy, in O(n)O(n) time for integer alphabets of polynomial size in nn. In so doing, we first describe a folklore algorithm which, given the suffix tree for yy, constructs the DAWG for the reversed string of yy in O(n)O(n) time. Then, we present our algorithm that builds the DAWG for yy in O(n)O(n) time for integer alphabets, from the suffix tree for yy. We also show that a straightforward modification to our DAWG construction algorithm leads to the first O(n)O(n)-time algorithm for constructing the affix tree of a given string yy over an integer alphabet. Affix trees are a text indexing structure supporting bidirectional pattern searches. We then discuss how our constructions can lead to linear-time algorithms for building other text indexing structures, such as linear-size suffix tries and symmetric CDAWGs in linear time in the case of integer alphabets. As a further application to our O(n)O(n)-time DAWG construction algorithm, we show that the set MAW(y)\mathsf{MAW}(y) of all minimal absent words (MAWs) of yy can be computed in optimal, input- and output-sensitive O(n+∣MAW(y)∣)O(n + |\mathsf{MAW}(y)|) time and O(n)O(n) working space for integer alphabets.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (20)
  1. doi:10.1016/S0196-6774(03)00087-7.
  2. doi:10.1137/S0097539702402354.
  3. doi:10.1007/s00224-006-1198-x.
  4. doi:10.1007/3-540-48523-6_23.
  5. doi:10.1186/1471-2105-9-167. URL https://doi.org/10.1186/1471-2105-9-167
  6. doi:10.1016/j.ipl.2010.05.008. URL https://doi.org/10.1016/j.ipl.2010.05.008
  7. doi:10.1093/bioinformatics/btv189. URL https://doi.org/10.1093/bioinformatics/btv189
  8. doi:10.1016/j.ic.2018.06.002.
  9. doi:10.1186/s13015-017-0094-z. URL https://doi.org/10.1186/s13015-017-0094-z
  10. doi:10.1093/bioinformatics/btx209. URL https://doi.org/10.1093/bioinformatics/btx209
  11. doi:10.1186/s12859-014-0388-9.
  12. doi:10.1007/978-3-319-32152-3_23.
  13. doi:10.1007/978-3-030-32686-9_11.
  14. doi:10.1007/978-3-030-61792-9_16.
  15. doi:10.2197/ipsjjip.29.1.
  16. doi:10.4230/LIPIcs.CPM.2022.27.
  17. doi:10.4230/LIPIcs.MFCS.2016.38.
  18. arXiv:1302.3347. URL http://arxiv.org/abs/1302.3347
  19. doi:10.1142/S0129626496000054.
  20. arXiv:2301.04295, doi:10.48550/arXiv.2301.04295.
Citations (5)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.