Abstract:For k ∈ ℤ+, define Σk as the set of integers {0, 1, …, k − 1}. Given an integer n and a string t of length m ≥ n over Σk, we count the number of times that each one of the kn distinct strings of length n over Σk occurs as a subsequence of t. Our algorithm makes only one scan of t and solves the problem in time complexity mkn−1 and space complexity m + kn. These are very close to best possible.
Set email alert for when this publication receives citations?
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.