Algorithms (Jun 2024)

Parsing Unranked Tree Languages, Folded Once

  • Martin Berglund,
  • Henrik Björklund,
  • Johanna Björklund

DOI
https://doi.org/10.3390/a17060268
Journal volume & issue
Vol. 17, no. 6
p. 268

Abstract

Read online

A regular unranked tree folding consists of a regular unranked tree language and a folding operation that merges (i.e., folds) selected nodes of a tree to form a graph; the combination is a formal device for representing graph languages. If, in the process of folding, the order among edges is discarded so that the result is an unordered graph, then two applications of a fold operation are enough to make the associated parsing problem NP-complete. However, if the order is kept, then the problem is solvable in non-uniform polynomial time. In this paper, we address the remaining case, where only one fold operation is applied, but the order among the edges is discarded. We show that, under these conditions, the problem is solvable in non-uniform polynomial time.

Keywords