Source author record

Takuya Mieno

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

7works
4topics
4close collaborators

Published work

7 publications

preprint2025arXiv

Subsequence Matching and LCS under Cartesian-Tree Equivalence

Two strings of the same length are said to Cartesian-tree match (CT-match) if their Cartesian-trees are isomorphic [Park et al., TCS 2020]. Cartesian-tree matching is a natural model that allows for capturing similarities of numerical sequences. Oizumi et al. [CPM 2022] showed that subsequence pattern matching under CT-matching model (CT-MSeq) can be solved in O(nmlog⁡log⁡n)O(nm \log \log n) time, where nn and mm are text and pattern lengths, respectively. This current article follows this line of research, and gives the following new results: (1) An O(nm)O(nm)-time CT-MSeq algorithm for binary alphabets; (2) An O((nm)1−ε)O((nm)^{1-ε})-time conditional lower bound for the CT-MSeq problem on alphabets of size 4, for any constant ε>0ε> 0, under the Orthogonal Vector Hypothesis (OVH). Further, we introduce the new problem of longest common subsequence under CT-matching (CT-LCS) for two given strings SS and TT of length nn, and present the following results: (3) An O(n6)O(n^6)-time CT-LCS algorithm for general ordered alphabets; (4) An O(n2/log⁡n)O(n^2 / \log n)-time CT-LCS algorithm for binary alphabets; (5) An O(n2−ε)O(n^{2-ε})-time conditional lower bound for the CT-LCS problem on alphabets of size 5, for any constant ε>0ε> 0, under OVH.

preprint2022arXiv

Cartesian Tree Subsequence Matching

Park et al. [TCS 2020] observed that the similarity between two (numerical) strings can be captured by the Cartesian trees: The Cartesian tree of a string is a binary tree recursively constructed by picking up the smallest value of the string as the root of the tree. Two strings of equal length are said to Cartesian-tree match if their Cartesian trees are isomorphic. Park et al. [TCS 2020] introduced the following Cartesian tree substring matching (CTMStr) problem: Given a text string TT of length nn and a pattern string of length mm, find every consecutive substring S=T[i..j]S = T[i..j] of a text string TT such that SS and PP Cartesian-tree match. They showed how to solve this problem in O~(n+m)\tilde{O}(n+m) time. In this paper, we introduce the Cartesian tree subsequence matching (CTMSeq) problem, that asks to find every minimal substring S=T[i..j]S = T[i..j] of TT such that SS contains a subsequence S′S' which Cartesian-tree matches PP. We prove that the CTMSeq problem can be solved efficiently, in O(mnp(n))O(m n p(n)) time, where p(n)p(n) denotes the update/query time for dynamic predecessor queries. By using a suitable dynamic predecessor data structure, we obtain O(mnlog⁡log⁡n)O(mn \log \log n)-time and O(nlog⁡m)O(n \log m)-space solution for CTMSeq. This contrasts CTMSeq with closely related order-preserving subsequence matching (OPMSeq) which was shown to be NP-hard by Bose et al. [IPL 1998].

preprint2022arXiv

Combinatorics of minimal absent words for a sliding window

A string ww is called a minimal absent word (MAW) for another string TT if ww does not occur in TT but the proper substrings of ww occur in TT. For example, let Σ={a,b,c}Σ= \{\mathtt{a, b, c}\} be the alphabet. Then, the set of MAWs for string w=abaabw = \mathtt{abaab} is {aaa,aaba,bab,bb,c}\{\mathtt{aaa, aaba, bab, bb, c}\}. In this paper, we study combinatorial properties of MAWs in the sliding window model, namely, how the set of MAWs changes when a sliding window of fixed length dd is shifted over the input string TT of length nn, where 1≤d<n1 \leq d < n. We present \emph{tight} upper and lower bounds on the maximum number of changes in the set of MAWs for a sliding window over TT, both in the cases of general alphabets and binary alphabets. Our bounds improve on the previously known best bounds [Crochemore et al., 2020].

preprint2022arXiv

Minimal Absent Words on Run-Length Encoded Strings

A string ww is called a minimal absent word (MAW) for another string TT if ww does not occur (as a substring) in TT and any proper substring of ww occurs in TT. State-of-the-art data structures for reporting the set MAW(T)\mathsf{MAW}(T) of MAWs from a given string TT of length nn require O(n)O(n) space, can be built in O(n)O(n) time, and can report all MAWs in O(∣MAW(T)∣)O(|\mathsf{MAW}(T)|) time upon a query. This paper initiates the problem of computing MAWs from a compressed representation of a string. In particular, we focus on the most basic compressed representation of a string, run-length encoding (RLE), which represents each maximal run of the same characters aa by apa^p where pp is the length of the run. Let mm be the RLE-size of string TT. After categorizing the MAWs into five disjoint sets M1\mathcal{M}_1, M2\mathcal{M}_2, M3\mathcal{M}_3, M4\mathcal{M}_4, M5\mathcal{M}_5 using RLE, we present matching upper and lower bounds for the number of MAWs in Mi\mathcal{M}_i for i=1,2,4,5i = 1,2,4,5 in terms of RLE-size mm, except for M3\mathcal{M}_3 whose size is unbounded by mm. We then present a compact O(m)O(m)-space data structure that can report all MAWs in optimal O(∣MAW(T)∣)O(|\mathsf{MAW}(T)|) time.

preprint2022arXiv

RePair Grammars are the Smallest Grammars for Fibonacci Words

Grammar-based compression is a loss-less data compression scheme that represents a given string ww by a context-free grammar that generates only ww. While computing the smallest grammar which generates a given string ww is NP-hard in general, a number of polynomial-time grammar-based compressors which work well in practice have been proposed. RePair, proposed by Larsson and Moffat in 1999, is a grammar-based compressor which recursively replaces all possible occurrences of a most frequently occurring bigrams in the string. Since there can be multiple choices of the most frequent bigrams to replace, different implementations of RePair can result in different grammars. In this paper, we show that the smallest grammars generating the Fibonacci words FkF_k can be completely characterized by RePair, where FkF_k denotes the kk-th Fibonacci word. Namely, all grammars for FkF_k generated by any implementation of RePair are the smallest grammars for FkF_k, and no other grammars can be the smallest for FkF_k. To the best of our knowledge, Fibonacci words are the first non-trivial infinite family of strings for which RePair is optimal.

preprint2020arXiv

Lyndon Words, the Three Squares Lemma, and Primitive Squares

We revisit the so-called "Three Squares Lemma" by Crochemore and Rytter [Algorithmica 1995] and, using arguments based on Lyndon words, derive a more general variant which considers three overlapping squares which do not necessarily share a common prefix. We also give an improved upper bound of nlog⁡2nn\log_2 n on the maximum number of (occurrences of) primitively rooted squares in a string of length nn, also using arguments based on Lyndon words. To the best of our knowledge, the only known upper bound was nlog⁡ϕn≈1.441nlog⁡2nn \log_ϕn \approx 1.441n\log_2 n, where ϕϕ is the golden ratio, reported by Fraenkel and Simpson [TCS 1999] obtained via the Three Squares Lemma.

preprint2020arXiv

Space-Efficient Algorithms for Computing Minimal/Shortest Unique Substrings

Given a string TT of length nn, a substring u=T[i..j]u = T[i..j] of TT is called a shortest unique substring (SUS) for an interval [s,t][s,t] if (a) uu occurs exactly once in TT, (b) uu contains the interval [s,t][s,t] (i.e. i≤s≤t≤ji \leq s \leq t \leq j), and (c) every substring vv of TT with ∣v∣<∣u∣|v| < |u| containing [s,t][s,t] occurs at least twice in TT. Given a query interval [s,t]⊂[1,n][s, t] \subset [1, n], the interval SUS problem is to output all the SUSs for the interval [s,t][s,t]. In this article, we propose a 4n+o(n)4n + o(n) bits data structure answering an interval SUS query in output-sensitive O(occ)O(\mathit{occ}) time, where occ\mathit{occ} is the number of returned SUSs. Additionally, we focus on the point SUS problem, which is the interval SUS problem for s=ts = t. Here, we propose a ⌈(log⁡23+1)n⌉+o(n)\lceil (\log_2{3} + 1)n \rceil + o(n) bits data structure answering a point SUS query in the same output-sensitive time. We also propose space-efficient algorithms for computing the minimal unique substrings of TT.

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.