Ranking and unranking bordered and unbordered words

05/04/2023
by   Daniel Gabric, et al.
0

A border of a word w is a word that is both a non-empty proper prefix and suffix of w. If w has a border, then it is said to be bordered; otherwise, it is said to be unbordered. The main results of this paper are the first algorithms to rank and unrank length-n bordered and unbordered words over a k-letter alphabet. We show that ranking bordered and unbordered words can be done in O(kn^3) time using O(n) space, and unranking them can be done in O(n^4klog k) time using O(n) space.

READ FULL TEXT

page 9

page 10

page 11

research
10/27/2020

Mutual Borders and Overlaps

A word is said to be bordered if it contains a non-empty proper prefix t...
research
04/10/2023

Ranking and Unranking k-subsequence universal words

A subsequence of a word w is a word u such that u = w[i_1] w[i_2] , … w[...
research
02/13/2019

Constructing Antidictionaries in Output-Sensitive Space

A word x that is absent from a word y is called minimal if all its prope...
research
11/06/2018

Knuth's Moves on Timed Words

We give an exposition of Schensted's algorithm to find the length of the...
research
08/18/2022

Walking on Words

Take any word over some alphabet. If it is non-empty, go to any position...
research
02/05/2022

Logarithmic equal-letter runs for BWT of purely morphic words

In this paper we study the number r_bwt of equal-letter runs produced by...
research
06/09/2021

Learning to Rank Words: Optimizing Ranking Metrics for Word Spotting

In this paper, we explore and evaluate the use of ranking-based objectiv...

Please sign up or login with your details

Forgot password? Click here to reset