Ranking and unranking bordered and unbordered words
Data Structures and Algorithms
2023-08-30 v2 Discrete Mathematics
Abstract
A \emph{border} of a word is a word that is both a non-empty proper prefix and suffix of . If has a border, then it is said to be \emph{bordered}; otherwise, it is said to be \emph{unbordered}. The main results of this paper are the first algorithms to rank and unrank length- bordered and unbordered words over a -letter alphabet. We show that, under the unit-cost RAM model, ranking bordered and unbordered words can be done in time using space, and unranking them can be done in time using space.
Keywords
Cite
@article{arxiv.2305.03000,
title = {Ranking and unranking bordered and unbordered words},
author = {Daniel Gabric},
journal= {arXiv preprint arXiv:2305.03000},
year = {2023}
}