Back to Search
Start Over
Lexicographical Generation of a Generalized Dyck Language
- Source :
- SIAM Journal on Computing. 32:880-903
- Publication Year :
- 2003
- Publisher :
- Society for Industrial & Applied Mathematics (SIAM), 2003.
-
Abstract
- We consider a generalization of the Dyck language. We have a set of opening and a set of closing brackets and a relation that gives the pairs of brackets that can be used in the generalized Dyck language. This Dyck language is a handy coding for several classes of labeled trees.We present an algorithm that generates all words of length 2n of the generalized Dyck language lexicographically. Thereby, each word is computed from its predecessor according to the lexicographical order without any knowledge about the words generated before. Additionally, we introduce a condition on the relation for the generalized Dyck language to be simply generated, which means that an algorithm needs to read only the suffix to be changed in order to compute the successor of a word according to the lexicographical order. We present an algorithm that checks whether a Dyck language is simply generated or not.For an arbitrary relation, we compute the sth moments of the random variable describing the length of the suffix to be cha...
Details
- ISSN :
- 10957111 and 00975397
- Volume :
- 32
- Database :
- OpenAIRE
- Journal :
- SIAM Journal on Computing
- Accession number :
- edsair.doi...........52714767cb1c5e5056226ae44219630b
- Full Text :
- https://doi.org/10.1137/s0097539701394493