English

Output-Sensitive Construction of CDAWGs from BWT-Runs

Data Structures and Algorithms 2026-07-02 v1

Abstract

The compact directed acyclic word graph (CDAWG) of a string can be viewed in two equivalent ways: as the edge-compacted DAWG of the string, and as the DAG obtained from the suffix tree by merging the nodes whose subtrees are isomorphic. By exploiting these two views in opposite directions, we show how to build, for the (reversed) input string of length nn, the CDAWG with eLe_L edges in O(eLlognlog(n/r))O(e_L\log n\log(n/r)) time with O(rlog(n/r)+eL)O(r\log(n/r)+e_L) words of working space, provided that the fully functional compressed suffix tree of Gagie, Navarro, and Prezza of size O(rlog(n/r))O(r\log(n/r)) is available. Here, rr denotes the number of BWT-runs of the input string.

Keywords

Cite

@article{arxiv.2607.01636,
  title  = {Output-Sensitive Construction of CDAWGs from BWT-Runs},
  author = {Yuta Tsuruzono and Hiroki Arimura and Shunsuke Inenaga},
  journal= {arXiv preprint arXiv:2607.01636},
  year   = {2026}
}