Source author record

Ayumi Shinohara

Explore this author’s publications, collaborators and research topics. This catalog record has not been claimed by its author.

ResearcherUnclaimed source record

Catalog footprint

Research overview

9works
3topics
4close collaborators

Published work

9 publications

preprint2026arXiv

Learning Deterministic Finite-State Machines from the Prefixes of a Single String is NP-Complete

It is well known that computing a minimum DFA consistent with a given set of positive and negative examples is NP-hard. Previous work has identified conditions on the input sample under which the problem becomes tractable or remains hard. In this paper, we study the computational complexity of the case where the input sample is prefix-closed. This formulation is equivalent to computing a minimum Moore machine consistent with observations along its runs. We show that the problem is NP-hard to approximate when the sample set consists of all prefixes of binary strings. Furthermore, we show that the problem remains NP-hard as a decision problem even when the sample set consists of the prefixes of a single binary string. Our argument also extends to the corresponding problem for Mealy machines.

preprint2022arXiv

Computing the Parameterized Burrows--Wheeler Transform Online

Parameterized strings are a generalization of strings in that their characters are drawn from two different alphabets, where one is considered to be the alphabet of static characters and the other to be the alphabet of parameter characters. Two parameterized strings are a parameterized match if there is a bijection over all characters such that the bijection transforms one string to the other while keeping the static characters (i.e., it behaves as the identity on the static alphabet). Ganguly et al. [SODA 2017] proposed the parameterized Burrows--Wheeler transform (pBWT) as a variant of the Burrows--Wheeler transform for space-efficient parameterized pattern matching. In this paper, we propose an algorithm for computing the pBWT online by reading the characters of a given input string one-by-one from right to left. Our algorithm works in O(∣Π∣log⁡n/log⁡log⁡n)O(|Π| \log n / \log \log n) amortized time for each input character, where nn and ΠΠ denote the size of the input string and the alphabet of the parameter characters, respectively.

preprint2022arXiv

Parallel algorithm for pattern matching problems under substring consistent equivalence relations

Given a text and a pattern over an alphabet, the pattern matching problem searches for all occurrences of the pattern in the text. An equivalence relation ≈\approx is called a substring consistent equivalence relation (SCER), if for two strings XX and YY, X≈YX \approx Y implies ∣X∣=∣Y∣|X| = |Y| and X[i:j]≈Y[i:j]X[i:j] \approx Y[i:j] for all 1≤i≤j≤∣X∣1 \le i \le j \le |X|. In this paper, we propose an efficient parallel algorithm for pattern matching under any SCER using the"duel-and-sweep" paradigm. For a pattern of length mm and a text of length nn, our algorithm runs in O(ξmtlog⁡2m)O(ξ_m^\mathrm{t} \log^2 m) time and O(ξmw⋅nlog⁡2m)O(ξ_m^\mathrm{w} \cdot n \log^2 m) work, with O(τnt+ξmtlog⁡2m)O(τ_n^\mathrm{t} + ξ_m^\mathrm{t} \log^2 m) time and O(τnw+ξmw⋅mlog⁡2m)O(τ_n^\mathrm{w} + ξ_m^\mathrm{w} \cdot m \log^2 m) work preprocessing on the Priority Concurrent Read Concurrent Write Parallel Random-Access Machines (P-CRCW PRAM).

preprint2020arXiv

Computing Covers under Substring Consistent Equivalence Relations

Covers are a kind of quasiperiodicity in strings. A string CC is a cover of another string TT if any position of TT is inside some occurrence of CC in TT. The shortest and longest cover arrays of TT have the lengths of the shortest and longest covers of each prefix of TT, respectively. The literature has proposed linear-time algorithms computing longest and shortest cover arrays taking border arrays as input. An equivalence relation ≈\approx over strings is called a substring consistent equivalence relation (SCER) iff X≈YX \approx Y implies (1) ∣X∣=∣Y∣|X| = |Y| and (2) X[i:j]≈Y[i:j]X[i:j] \approx Y[i:j] for all 1≤i≤j≤∣X∣1 \le i \le j \le |X|. In this paper, we generalize the notion of covers for SCERs and prove that existing algorithms to compute the shortest cover array and the longest cover array of a string TT under the identity relation will work for any SCERs taking the accordingly generalized border arrays.

preprint2020arXiv

Detecting kk-(Sub-)Cadences and Equidistant Subsequence Occurrences

The equidistant subsequence pattern matching problem is considered. Given a pattern string PP and a text string TT, we say that PP is an \emph{equidistant subsequence} of TT if PP is a subsequence of the text such that consecutive symbols of PP in the occurrence are equally spaced. We can consider the problem of equidistant subsequences as generalizations of (sub-)cadences. We give bit-parallel algorithms that yield o(n2)o(n^2) time algorithms for finding kk-(sub-)cadences and equidistant subsequences. Furthermore, O(nlog⁡2n)O(n\log^2 n) and O(nlog⁡n)O(n\log n) time algorithms, respectively for equidistant and Abelian equidistant matching for the case ∣P∣=3|P| = 3, are shown. The algorithms make use of a technique that was recently introduced which can efficiently compute convolutions with linear constraints.

preprint2020arXiv

Fast and linear-time string matching algorithms based on the distances of qq-gram occurrences

Given a text TT of length nn and a pattern PP of length mm, the string matching problem is a task to find all occurrences of PP in TT. In this study, we propose an algorithm that solves this problem in O((n+m)q)O((n + m)q) time considering the distance between two adjacent occurrences of the same qq-gram contained in PP. We also propose a theoretical improvement of it which runs in O(n+m)O(n + m) time, though it is not necessarily faster in practice. We compare the execution times of our and existing algorithms on various kinds of real and artificial datasets such as an English text, a genome sequence and a Fibonacci string. The experimental results show that our algorithm is as fast as the state-of-the-art algorithms in many cases, particularly when a pattern frequently appears in a text.

preprint2020arXiv

Grammar compression with probabilistic context-free grammar

We propose a new approach for universal lossless text compression, based on grammar compression. In the literature, a target string TT has been compressed as a context-free grammar GG in Chomsky normal form satisfying L(G)={T}L(G) = \{T\}. Such a grammar is often called a \emph{straight-line program} (SLP). In this paper, we consider a probabilistic grammar GG that generates TT, but not necessarily as a unique element of L(G)L(G). In order to recover the original text TT unambiguously, we keep both the grammar GG and the derivation tree of TT from the start symbol in GG, in compressed form. We show some simple evidence that our proposal is indeed more efficient than SLPs for certain texts, both from theoretical and practical points of view.

preprint2020arXiv

In-Place Bijective Burrows-Wheeler Transforms

One of the most well-known variants of the Burrows-Wheeler transform (BWT) [Burrows and Wheeler, 1994] is the bijective BWT (BBWT) [Gil and Scott, arXiv 2012], which applies the extended BWT (EBWT) [Mantaci et al., TCS 2007] to the multiset of Lyndon factors of a given text. Since the EBWT is invertible, the BBWT is a bijective transform in the sense that the inverse image of the EBWT restores this multiset of Lyndon factors such that the original text can be obtained by sorting these factors in non-increasing order. In this paper, we present algorithms constructing or inverting the BBWT in-place using quadratic time. We also present conversions from the BBWT to the BWT, or vice versa, either (a) in-place using quadratic time, or (b) in the run-length compressed setting using O(nlg⁡r/lg⁡lg⁡r)O(n \lg r / \lg \lg r) time with O(rlg⁡n)O(r \lg n) bits of words, where rr is the sum of character runs in the BWT and the BBWT.

preprint2013arXiv

Detecting regularities on grammar-compressed strings

We solve the problems of detecting and counting various forms of regularities in a string represented as a Straight Line Program (SLP). Given an SLP of size nn that represents a string ss of length NN, our algorithm compute all runs and squares in ss in O(n3h)O(n^3h) time and O(n2)O(n^2) space, where hh is the height of the derivation tree of the SLP. We also show an algorithm to compute all gapped-palindromes in O(n3h+gnhlog⁡N)O(n^3h + gnh\log N) time and O(n2)O(n^2) space, where gg is the length of the gap. The key technique of the above solution also allows us to compute the periods and covers of the string in O(n2h)O(n^2 h) time and O(nh(n+log⁡2N))O(nh(n+\log^2 N)) time, respectively.

Research graph

See the researcher in context

Open full explorer

Inspect adjacent papers, topics, institutions and collaborators without losing the researcher page.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.