Logo image
Sign in
Counting distinct palindromes in a word in linear time
Journal article   Peer reviewed

Counting distinct palindromes in a word in linear time

Richard Groult, Elise Prieur-Gaston and Gwenaël Richomme
Information Processing Letters, Vol.110, pp.908-912
2010

Abstract

Palindrome Algorithms Palindromic fullness Palindromic richness
We design an algorithm to count the number of distinct palindromes in a word w in time O(|w|), by adapting an algorithm to detect all occurrences of maximal palindromes in a given word and using the longest previous factor array. As a direct consequence, this shows that the palindromic richness (or fullness) of a word can be checked in linear time.
url
Find in HALView

Metrics

1 Record Views

Details

Logo image