Masayuki Takeda

dblp:35/1544 · DBLP profile ↗
← Back
164ranked-venue papers
6as first author
16since 2021 · last 2026
—ORCID · conflict

Domains — the database's venue-derived domains; a paper can count in several

Theory of computation · 65 · 2 first-author · 13 since 2021Graphics, computer vision, multimedia, augmented reality and games · 41 · 1 first-authorDatabases, data management, data science and information retrieval · 40 · 1 first-author · 4 since 2021Artificial intelligence and machine learning · 22 · 2 first-authorApplied, interdisciplinary, general and emerging computing · 22 · 2 first-authorHuman-computer interaction and ubiquitous computing · 1
YearPublicationVenuePosition
2026 Grammar index by induced suffix sorting
Tooru Akagi, Dominik Köppl, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.6
2025 Computing maximal palindromes in non-standard matching models
abstract
Palindromes are popular and important objects in textual data processing, bioinformatics, and combinatorics on words. Let S = X a Y be a string where X and Y are of the same length, and a is either a single character or the empty string. Then, there exist two alternative definitions for palindromes: S is said to be a palindrome if S is equal to its reversal S R (Reversal-based definition); or if its right-arm Y is equal to the reversal of its left-arm X R (Symmetry-based definition). It is clear that if the “equality” (≈) used in both definitions is exact character matching (=), then the two definitions are the same. However, if we apply other string-equality criteria ≈, including the complementary-matching model for biological sequences, the Cartesian-tree model [Park et al., TCS 2020], the parameterized model [Baker, JCSS 1996], the order-preserving model [Kim et al., TCS 2014], and the palindromic-structure model [I et al., TCS 2013], then are the reversal-based palindromes and the symmetry-based palindromes the same? To the best of our knowledge, no previous work has considered or answered this natural question. In this paper, we first provide answers to this question, and then present efficient algorithms for computing all maximal palindromes under the non-standard matching models in a given string. After confirming that Gusfield's offline suffix-tree-based algorithm for computing maximal symmetry-based palindromes can be readily extended to the aforementioned matching models, we show how to extend Manacher's online algorithm for computing maximal reversal-based palindromes in linear time for all the aforementioned matching models.
Takuya Mieno, Mitsuru Funakoshi, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Inf. Comput.6
2024 Computing Maximal Palindromes in Non-standard Matching Models
Mitsuru Funakoshi, Takuya Mieno, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
IWOCA6
2023 Linear-time computation of DAWGs, symmetric indexing structures, and MAWs for integer alphabets
Yuta Fujishige, Yuki Tsujimaru, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2022 Computing Minimal Unique Substrings for a Sliding Window
abstract
Abstract A substring u of a string T is called a minimal unique substring (MUS) of T if u occurs exactly once in T and any proper substring of u occurs at least twice in T. In this paper, we study the problem of computing MUSs for a sliding window over a given string T. We first show how the set of MUSs can change when the window slides over T. We then present an $$O(n\log \sigma ')$$ O ( n log σ ′ ) -time and O(d)-space algorithm to compute MUSs for a sliding window of size d over the input string T of length n, where $$\sigma '\le d$$ σ ′ ≤ d is the maximum number of distinct characters in every window.
Takuya Mieno, Yuta Fujishige, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Algorithmica6
2022 c-trie++: A dynamic trie tailored for fast prefix searches
abstract
Given a dynamic set K of k strings of total length n whose characters are drawn from an alphabet of size σ , a keyword dictionary is a data structure built on K that provides lookup, prefix search, and update operations on K . Under the assumption that α = w / lg ⁡ σ characters fit into a single machine word of w bits, we propose a keyword dictionary that represents K in either n lg ⁡ σ + Θ ( k lg ⁡ n ) or | T | lg ⁡ σ + Θ ( k w ) bits of space, where | T | is the number of nodes of a trie representing K . It supports all operations in O ( m / α + lg ⁡ α ) expected time on an input string of length m in the word RAM model. An evaluation of our implementation highlights the practical usefulness of the proposed data structure, especially for prefix searches — one of the most essential keyword dictionary operations.
Kazuya Tsuruta, Dominik Köppl, Shunsuke Kanda, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Inf. Comput.7
2022 Palindromic trees for a sliding window and its applications
abstract
The palindromic tree (a.k.a. eertree) for a string S of length n is a tree-like data structure that represents the set of all distinct palindromic substrings of S, using O(n) space [Rubinchik and Shur, 2018]. It is known that, when S is over an alphabet of size σ and is given in an online manner, then the palindromic tree of S can be constructed in O(nlog⁡σ) time with O(n) space. In this paper, we consider the sliding window version of the problem: For a sliding window of length at most d, we present two versions of an algorithm which maintains the palindromic tree of size O(d) for every sliding window S[i..j] over S, where 1≤j−i+1≤d. The first version works in O(nlog⁡σ′) time with O(d) space where σ′≤d is the maximum number of distinct characters in the windows, and the second one works in O(n+dσ) time with (d+2)σ+O(d) space. We also show how our algorithms can be applied to efficient computation of minimal unique palindromic substrings (MUPS) and minimal absent palindromic words (MAPW) for a sliding window.
Takuya Mieno, Kiichi Watanabe, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Inf. Process. Lett.6
2022 Factorizing Strings into Repetitions
Hiroe Inoue, Yoshiaki Matsuoka, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theory Comput. Syst.6
2022 Combinatorics of minimal absent words for a sliding window
abstract
A string w is called a minimal absent word (MAW) for another string T if w does not occur in T but the proper substrings of w occur in T. For example, let Σ={a,b,c} be the alphabet. Then, the set of MAWs for string w=abaab is {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 d is shifted over the input string T of length n, where 1≤d
Tooru Akagi, Yuki Kuhara, Takuya Mieno, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.7
2022 Parameterized DAWGs: Efficient constructions and bidirectional pattern searches
abstract
Two strings $x$ and $y$ over $\Sigma \cup \Pi$ of equal length are said to \emph{parameterized match} (\emph{p-match}) if there is a renaming bijection $f:\Sigma \cup \Pi \rightarrow \Sigma \cup \Pi$ that is identity on $\Sigma$ and transforms $x$ to $y$ (or vice versa). The \emph{p-matching} problem is to look for substrings in a text that p-match a given pattern. In this paper, we propose \emph{parameterized suffix automata} (\emph{p-suffix automata}) and \emph{parameterized directed acyclic word graphs} (\emph{PDAWGs}) which are the p-matching versions of suffix automata and DAWGs. While suffix automata and DAWGs are equivalent for standard strings, we show that p-suffix automata can have $\Theta(n^2)$ nodes and edges but PDAWGs have only $O(n)$ nodes and edges, where $n$ is the length of an input string. We also give an $O(n |\Pi| \log (|\Pi| + |\Sigma|))$-time $O(n)$-space algorithm that builds the PDAWG in a left-to-right online manner. As a byproduct, it is shown that the \emph{parameterized suffix tree} for the reversed string can also be built in the same time and space, in a right-to-left online manner. This duality also leads us to two further efficient algorithms for p-matching: Given the parameterized suffix tree for the reversal of the input string $T$, one can build the PDAWG of $T$ in $O(n)$ time in an offline manner; One can perform \emph{bidirectional} p-matching in $O(m \log (|\Pi|+|\Sigma|) + \mathit{occ})$ time using $O(n)$ space, where $m$ denotes the pattern length and $\mathit{occ}$ is the number of pattern occurrences in the text $T$.
Katsuhito Nakashima, Noriki Fujisato, Diptarama, Yuto Nakashima 0001, Ryo Yoshinaka, Shunsuke Inenaga, Hideo Bannai, Ayumi Shinohara, Masayuki Takeda
Theor. Comput. Sci.9
2021 The Parameterized Suffix Tray
Noriki Fujisato, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CIAC5
2021 Grammar Index by Induced Suffix Sorting
Tooru Akagi, Dominik Köppl, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE6
2021 Longest Common Rollercoasters
Kosuke Fujita, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE5
2021 On the Approximation Ratio of LZ-End to LZ77
Takumi Ideue, Takuya Mieno, Mitsuru Funakoshi, Yuto Nakashima 0001, Shunsuke Inenaga, Masayuki Takeda
SPIRE6
2021 Computing longest palindromic substring after single-character or block-wise edits
Mitsuru Funakoshi, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2021 Efficiently computing runs on a trie
abstract
A maximal repetition, or run, in a string, is a maximal periodic substring whose smallest period is at most half the length of the substring. In this paper, we consider runs that correspond to a path on a trie, or in other words, on a rooted edge-labeled tree where each edge is labeled with a single symbol, and the endpoints of the path must be a descendant/ancestor of the other. For a trie with n edges, we show that the number of runs is less than n. We also show an asymptotic lower bound on the maximum density of runs in tries: limn→∞⁡ρT(n)/n>0.9932348 where ρT(n) is the maximum number of runs in a trie with n edges. Furthermore, we also show an O(nlog⁡log⁡n) time and O(n) space algorithm for finding all runs.
Ryo Sugahara, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2020 Detecting k-(Sub-)Cadences and Equidistant Subsequence Occurrences
abstract
The equidistant subsequence pattern matching problem is considered. Given a pattern string P and a text string T, we say that P is an equidistant subsequence of T if P is a subsequence of the text such that consecutive symbols of P 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(n²) time algorithms for finding k-(sub-)cadences and equidistant subsequences. Furthermore, O(nlog² n) and O(nlog n) time algorithms, respectively for equidistant and Abelian equidistant matching for the case |P| = 3, are shown. The algorithms make use of a technique that was recently introduced which can efficiently compute convolutions with linear constraints.
Mitsuru Funakoshi, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Ayumi Shinohara
CPM5
2020 DAWGs for Parameterized Matching: Online Construction and Related Indexing Structures
abstract
Two strings x and y over Σ ∪ Π of equal length are said to parameterized match (p-match) if there is a renaming bijection f:Σ ∪ Π → Σ ∪ Π that is identity on Σ and transforms x to y (or vice versa). The p-matching problem is to look for substrings in a text that p-match a given pattern. In this paper, we propose parameterized suffix automata (p-suffix automata) and parameterized directed acyclic word graphs (PDAWGs) which are the p-matching versions of suffix automata and DAWGs. While suffix automata and DAWGs are equivalent for standard strings, we show that p-suffix automata can have Θ(n²) nodes and edges but PDAWGs have only O(n) nodes and edges, where n is the length of an input string. We also give O(n |Π| log (|Π| + |Σ|))-time O(n)-space algorithm that builds the PDAWG in a left-to-right online manner. As a byproduct, it is shown that the parameterized suffix tree for the reversed string can also be built in the same time and space, in a right-to-left online manner.
Katsuhito Nakashima, Noriki Fujisato, Diptarama, Yuto Nakashima 0001, Ryo Yoshinaka, Shunsuke Inenaga, Hideo Bannai, Ayumi Shinohara, Masayuki Takeda
CPM9
2020 c-Trie++: A Dynamic Trie Tailored for Fast Prefix Searches
abstract
Given a dynamic set K of k strings of total length n whose characters are drawn from an alphabet of size σ, a keyword dictionary is a data structure built on K that provides locate, prefix search, and update operations on K. Under the assumption that α = w / lg σ characters fit into a single machine word w, we propose a keyword dictionary that represents K in n lg σ + Θ(k lg n) bits of space, supporting all operations in Θ(m / α + lg α) expected time on an input string of length m in the word RAM model. This data structure is underlined with an exhaustive practical evaluation, highlighting the practical usefulness of the proposed data structure, especially for prefix searches - one of the most elementary keyword dictionary operations.
Kazuya Tsuruta, Dominik Köppl, Shunsuke Kanda, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
DCC7
2020 Minimal Unique Substrings and Minimal Absent Words in a Sliding Window
Takuya Mieno, Yuki Kuhara, Tooru Akagi, Yuta Fujishige, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SOFSEM8
2020 Faster STR-EC-LCS Computation
Kohei Yamada, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SOFSEM5
2020 On Repetitiveness Measures of Thue-Morse Words
Kanaru Kutsukake, Takuya Matsumoto, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE6
2020 Towards Efficient Interactive Computation of Dynamic Time Warping Distance
Akihiro Nishi, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE5
2020 Dynamic index and LZ factorization in compressed space
Takaaki Nishimoto, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Discret. Appl. Math.5
2020 Fast Algorithms for the Shortest Unique Palindromic Substring Problem on Run-Length Encoded Strings
Kiichi Watanabe, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theory Comput. Syst.5
2020 Space-efficient algorithms for computing minimal/shortest unique substrings
Takuya Mieno, Dominik Köppl, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.6
2019 The Parameterized Position Heap of a Trie
Noriki Fujisato, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CIAC5
2019 Faster Queries for Longest Substring Palindrome After Block Edit
abstract
Palindromes are important objects in strings which have been extensively studied from combinatorial, algorithmic, and bioinformatics points of views. Manacher [J. ACM 1975] proposed a seminal algorithm that computes the longest substring palindromes (LSPals) of a given string in O(n) time, where n is the length of the string. In this paper, we consider the problem of finding the LSPal after the string is edited. We present an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LSPals in O(l + log log n) time, after a substring in T is replaced by a string of arbitrary length l. This outperforms the query algorithm proposed in our previous work [CPM 2018] that uses O(l + log n) time for each query.
Mitsuru Funakoshi, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2019 Computing Runs on a Trie
abstract
A maximal repetition, or run, in a string, is a maximal periodic substring whose smallest period is at most half the length of the substring. In this paper, we consider runs that correspond to a path on a trie, or in other words, on a rooted edge-labeled tree where the endpoints of the path must be a descendant/ancestor of the other. For a trie with n edges, we show that the number of runs is less than n. We also show an O(n sqrt{log n}log log n) time and O(n) space algorithm for counting and finding the shallower endpoint of all runs. We further show an O(n log n) time and O(n) space algorithm for finding both endpoints of all runs. We also discuss how to improve the running time even more.
Ryo Sugahara, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2019 On the Size of Overlapping Lempel-Ziv and Lyndon Factorizations
abstract
Lempel-Ziv (LZ) factorization and Lyndon factorization are well-known factorizations of strings. Recently, Kärkkäinen et al. studied the relation between the sizes of the two factorizations, and showed that the size of the Lyndon factorization is always smaller than twice the size of the non-overlapping LZ factorization [STACS 2017]. In this paper, we consider a similar problem for the overlapping version of the LZ factorization. Since the size of the overlapping LZ factorization is always smaller than the size of the non-overlapping LZ factorization and, in fact, can even be an O(log n) factor smaller, it is not immediately clear whether a similar bound as in previous work would hold. Nevertheless, in this paper, we prove that the size of the Lyndon factorization is always smaller than four times the size of the overlapping LZ factorization.
Yuki Urabe, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2019 An Improved Data Structure for Left-Right Maximal Generic Words Problem
abstract
For a set D of documents and a positive integer d, a string w is said to be d-left-right maximal, if (1) w occurs in at least d documents in D, and (2) any proper superstring of w occurs in less than d documents. The left-right-maximal generic words problem is, given a set D of documents, to preprocess D so that for any string p and for any positive integer d, all the superstrings of p that are d-left-right maximal can be answered quickly. In this paper, we present an O(n log m) space data structure (in words) which answers queries in O(|p| + o log log m) time, where n is the total length of documents in D, m is the number of documents in D and o is the number of outputs. Our solution improves the previous one by Nishimoto et al. (PSC 2015), which uses an O(n log n) space data structure answering queries in O(|p|+ r * log n + o * log^2 n) time, where r is the number of right-extensions q of p occurring in at least d documents such that any proper right extension of q occurs in less than d documents.
Yuta Fujishige, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
ISAAC5
2019 Shortest Unique Palindromic Substring Queries on Run-Length Encoded Strings
Kiichi Watanabe, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
IWOCA5
2019 Direct Linear Time Construction of Parameterized Suffix and LCP Arrays for Constant Alphabets
Noriki Fujisato, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE5
2019 On Longest Common Property Preserved Substring Queries
Kazuki Kai, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Tomasz Kociumaka
SPIRE5
2019 Compact Data Structures for Shortest Unique Substring Queries
Takuya Mieno, Dominik Köppl, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE6
2019 On the size of the smallest alphabet for Lyndon trees
Yuto Nakashima 0001, Takuya Takagi, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2018 Faster Online Elastic Degenerate String Matching
abstract
An Elastic-Degenerate String [Iliopoulus et al., LATA 2017] is a sequence of sets of strings, which was recently proposed as a way to model a set of similar sequences. We give an online algorithm for the Elastic-Degenerate String Matching (EDSM) problem that runs in O(nm sqrt{m log m} + N) time and O(m) working space, where n is the number of elastic degenerate segments of the text, N is the total length of all strings in the text, and m is the length of the pattern. This improves the previous algorithm by Grossi et al. [CPM 2017] that runs in O(nm^2 + N) time.
Kotaro Aoyama, Yuto Nakashima 0001, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM6
2018 Longest substring palindrome after edit
abstract
It is known that the length of the longest substring palindromes (LSPals) of a given string T of length n can be computed in O(n) time by Manacher's algorithm [J. ACM '75]. In this paper, we consider the problem of finding the LSPal after the string is edited. We present an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LSPals in O(log (min {sigma, log n })) time after single character substitution, insertion, or deletion, where sigma denotes the number of distinct characters appearing in T. We also propose an algorithm that uses O(n) time and space for preprocessing, and answers the length of the LSPals in O(l + log n) time, after an existing substring in T is replaced by a string of arbitrary length l.
Mitsuru Funakoshi, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2018 Lyndon Factorization of Grammar Compressed Texts Revisited
abstract
We revisit the problem of computing the Lyndon factorization of a string w of length N which is given as a straight line program (SLP) of size n. For this problem, we show a new algorithm which runs in O(P(n, N) + Q(n, N)n log log N) time and O(n log N + S(n, N)) space where P(n, N), S(n,N), Q(n,N) are respectively the pre-processing time, space, and query time of a data structure for longest common extensions (LCE) on SLPs. Our algorithm improves the algorithm proposed by I et al. (TCS '17), and can be more efficient than the O(N)-time solution by Duval (J. Algorithms '83) when w is highly compressible.
Isamu Furuya, Yuto Nakashima 0001, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM6
2018 Computing longest common square subsequences
abstract
A square is a non-empty string of form YY. The longest common square subsequence (LCSqS) problem is to compute a longest square occurring as a subsequence in two given strings A and B. We show that the problem can easily be solved in O(n^6) time or O(|M|n^4) time with O(n^4) space, where n is the length of the strings and M is the set of matching points between A and B. Then, we show that the problem can also be solved in O(sigma |M|^3 + n) time and O(|M|^2 + n) space, or in O(|M|^3 log^2 n log log n + n) time with O(|M|^3 + n) space, where sigma is the number of distinct characters occurring in A and B. We also study lower bounds for the LCSqS problem for two or more strings.
Takafumi Inoue, Shunsuke Inenaga, Heikki Hyyrö, Hideo Bannai, Masayuki Takeda
CPM5
2018 Longest Lyndon Substring After Edit
abstract
The longest Lyndon substring of a string T is the longest substring of T which is a Lyndon word. LLS(T) denotes the length of the longest Lyndon substring of a string T. In this paper, we consider computing LLS(T') where T' is an edited string formed from T. After O(n) time and space preprocessing, our algorithm returns LLS(T') in O(log n) time for any single character edit. We also consider a version of the problem with block edits, i.e., a substring of T is replaced by a given string of length l. After O(n) time and space preprocessing, our algorithm returns LLS(T') in O(l log sigma + log n) time for any block edit where sigma is the number of distinct characters in T. We can modify our algorithm so as to output all the longest Lyndon substrings of T' for both problems.
Yuki Urabe, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2018 Recovering, Counting and Enumerating Strings from Forward and Backward Suffix Arrays
Yuki Kuhara, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE5
2017 Faster STR-IC-LCS Computation via RLE
abstract
The constrained LCS problem asks one to find a longest common subsequence of two input strings A and B with some constraints. The STR-IC-LCS problem is a variant of the constrained LCS problem, where the solution must include a given constraint string C as a substring. Given two strings A and B of respective lengths M and N, and a constraint string C of length at most min{M, N}, the best known algorithm for the STR-IC-LCS problem, proposed by Deorowicz (Inf. Process. Lett., 11:423-426, 2012), runs in O(MN) time. In this work, we present an O(mN + nM)-time solution to the STR-IC-LCS problem, where m and n denote the sizes of the run-length encodings of A and B, respectively. Since m <= M and n <= N always hold, our algorithm is always as fast as Deorowicz's algorithm, and is faster when input strings are compressible via RLE.
Keita Kuboi, Yuta Fujishige, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2017 Tight Bounds on the Maximum Number of Shortest Unique Substrings
abstract
A substring Q of a string S is called a shortest unique substring (SUS) for interval [s,t] in S, if Q occurs exactly once in S, this occurrence of Q contains interval [s,t], and every substring of S which contains interval [s,t] and is shorter than Q occurs at least twice in S. The SUS problem is, given a string S, to preprocess S so that for any subsequent query interval [s,t] all the SUSs for interval [s,t] can be answered quickly. When s = t, we call the SUSs for [s, t] as point SUSs, and when s <= t, we call the SUSs for [s, t] as interval SUSs. There exist optimal O(n)-time preprocessing scheme which answers queries in optimal O(k) time for both point and interval SUSs, where n is the length of S and k is the number of outputs for a given query. In this paper, we reveal structural, combinatorial properties underlying the SUS problem: Namely, we show that the number of intervals in S that correspond to point SUSs for all query positions in S is less than 1.5n, and show that this is a matching upper and lower bound. Also, we consider the maximum number of intervals in S that correspond to interval SUSs for all query intervals in S.
Takuya Mieno, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM4
2017 Almost Linear Time Computation of Maximal Repetitions in Run Length Encoded Strings
abstract
We consider the problem of computing all maximal repetitions contained in a string that is given in run-length encoding. Given a run-length encoding of a string, we show that the maximum number of maximal repetitions contained in the string is at most m+k-1, where m is the size of the run-length encoding, and k is the number of run-length factors whose exponent is at least 2. We also show an algorithm for computing all maximal repetitions in O(m \alpha(m)) time and O(m) space, where \alpha denotes the inverse Ackermann function.
Yuta Fujishige, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
ISAAC5
2017 Shortest Unique Palindromic Substring Queries in Optimal Time
Yuto Nakashima 0001, Hiroe Inoue, Takuya Mieno, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
IWOCA6
2017 Computing Abelian String Regularities Based on RLE
Shiho Sugimoto, Naoki Noda, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
IWOCA5
2017 Small-Space LCE Data Structure with Constant-Time Queries
abstract
The longest common extension (LCE) problem is to preprocess a given string w of length n so that the length of the longest common prefix between suffixes of w that start at any two given positions is answered quickly. In this paper, we present a data structure of O(z \tau^2 + \frac{n}{\tau}) words of space which answers LCE queries in O(1) time and can be built in O(n \log \sigma) time, where 1 \leq \tau \leq \sqrt{n} is a parameter, z is the size of the Lempel-Ziv 77 factorization of w and \sigma is the alphabet size. The proposed LCE data structure not access the input string w when answering queries, and thus w can be deleted after preprocessing. On top of this main result, we obtain further results using (variants of) our LCE data structure, which include the following: - For highly repetitive strings where the z\tau^2 term is dominated by \frac{n}{\tau}, we obtain a constant-time and sub-linear space LCE query data structure. - Even when the input string is not well compressible via Lempel-Ziv 77 factorization, we still can obtain a constant-time and sub-linear space LCE data structure for suitable \tau and for \sigma \leq 2^{o(\log n)}. - The time-space trade-off lower bounds for the LCE problem by Bille et al. [J. Discrete Algorithms, 25:42-50, 2014] and by Kosolobov [CoRR, abs/1611.02891, 2016] do not apply in some cases with our LCE data structure.
Yuka Tanimura, Takaaki Nishimoto, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
MFCS5
2017 Order Preserving Pattern Matching on Trees and DAGs
Temma Nakamura, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE4
2017 Efficient Computation of Substring Equivalence Classes with Suffix Arrays
Kazuyuki Narisawa, Hideharu Hiratsuka, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Algorithmica5
2017 The "Runs" Theorem
abstract
We give a new characterization of maximal repetitions (or runs) in strings based on Lyndon words. The characterization leads to a proof of what was known as the “runs” conjecture [R. M. Kolpakov and G. Kucherov, Proceedings of the IEEE Symposium on Foundations of Computer Science (FOCS), IEEE Computer Society, Los Alamitos, CA, 1999, pp. 596--604]), which states that the maximum number of runs $\rho(n)$ in a string of length $n$ is less than $n$. The proof is remarkably simple, considering the numerous endeavors to tackle this problem in the last 15 years, and significantly improves our understanding of how runs can occur in strings. In addition, we obtain an upper bound of 3n for the maximum sum of exponents $\sigma(n)$ of runs in a string of length $n$, improving on the best known bound of 4.1n by Crochemore et al. [ J. Discrete Algorithms, 14 (2012), pp. 29--36], as well as other improved bounds on related problems. The characterization also gives rise to a new, conceptually simple linear-time algorithm for computing all the runs in a string. A notable characteristic of our algorithm is that, unlike all existing linear-time algorithms, it does not utilize the Lempel--Ziv factorization of the string. We also establish a relationship between runs and nodes of the Lyndon tree, which gives a simple optimal solution to the 2-period query problem that was recently solved by Kociumaka et al. [ Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, (SODA) 2015, San Diego, CA, SIAM, Philadelphia, 2015, pp. 532--551].
Hideo Bannai, Tomohiro I, Shunsuke Inenaga, Yuto Nakashima 0001, Masayuki Takeda, Kazuya Tsuruta
SIAM J. Comput.5
2017 Inferring strings from Lyndon factorization
Yuto Nakashima 0001, Takashi Okabe, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.6
2016 Factorizing a String into Squares in Linear Time
abstract
A square factorization of a string w is a factorization of w in which each factor is a square. Dumitran et al. [SPIRE 2015, pp. 54-66] showed how to find a square factorization of a given string of length n in O(n log n) time, and they posed a question whether it can be done in O(n) time. In this paper, we answer their question positively, showing an O(n)-time algorithm for square factorization in the standard word RAM model with machine word size omega = Omega(log n). We also show an O(n + (n log^2 n) / omega)-time (respectively, O(n log n)-time) algorithm to find a square factorization which contains the maximum (respectively, minimum) number of squares.
Yoshiaki Matsuoka, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Florin Manea
CPM4
2016 Deterministic Sub-Linear Space LCE Data Structures With Efficient Construction
abstract
Given a string S of n symbols, a longest common extension query LCE(i,j) asks for the length of the longest common prefix of the $i$th and $j$th suffixes of S. LCE queries have several important applications in string processing, perhaps most notably to suffix sorting. Recently, Bille et al. (J. Discrete Algorithms 25:42-50, 2014, Proc. CPM 2015:65-76) described several data structures for answering LCE queries that offers a space-time trade-off between data structure size and query time. In particular, for a parameter 1 <= tau <= n, their best deterministic solution is a data structure of size O(n/tau) which allows LCE queries to be answered in O(tau) time. However, the construction time for all deterministic versions of their data structure is quadratic in n. In this paper, we propose a deterministic solution that achieves a similar space-time trade-off of O(tau * min(log(tau),log(n/tau)) query time using O(n/tau) space, but significantly improve the construction time to O(n*tau).
Yuka Tanimura, Tomohiro I, Hideo Bannai, Shunsuke Inenaga, Simon J. Puglisi, Masayuki Takeda
CPM6
2016 A Guidance System for Wide-area Complex Disaster Evacuation based on Ant Colony Optimization
abstract
This paper reports the results of applying our approach discovering safe evacuation routes to practical situations. Our approach is based on the ant colony optimization (ACO) and it is practical in the light of a real case with a tsunami. ACO have been often employed for finding evacuation routes in traditional approaches, which only take advantage of ants behavior more frequently following traces of other ants’ through pheromone communications. We assume that there are a lot of danger zones in the damaged area. For example Rikuzentakata is a city that extensively damaged in the 2011 Great East Japan Earthquake. In such a case, the traditional approaches may present some unsafe routes through the danger zones. We have proposed an ACO based approach that calculates evacuation routes avoiding danger zones. In our approach, evacuees can deposit deodorant pheromone around danger zones, which makes normal pheromone ineffective, so that our approach gives routes not passing through the danger zones. We have implemented our approach as a simulator, conducting experiments in the same situation as the Rikuzentakata case. Through the results of the experiments, we show that our approach decreases the number of people suffering from collapsed and burning buildings.
Hirotaka Goto, Asuka Ohta, Tomofumi Matsuzawa, Munehiro Takimoto, Yasushi Kambayashi, Masayuki Takeda
ICAART (1)6
2016 Finding Gapped Palindromes Online
Yuta Fujishige, Michitaro Nakamura, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
IWOCA5
2016 Computing DAWGs and Minimal Absent Words in Linear Time for Integer Alphabets
abstract
The directed acyclic word graph (DAWG) of a string y is the smallest (partial) DFA which recognizes all suffixes of y and has only O(n) nodes and edges. We present the first O(n)-time algorithm for computing the DAWG of a given string y of length n over an integer alphabet of polynomial size in n. We also show that a straightforward modification to our DAWG construction algorithm leads to the first O(n)-time algorithm for constructing the affix tree of a given string y over an integer alphabet. Affix trees are a text indexing structure supporting bidirectional pattern searches. As an application to our O(n)-time DAWG construction algorithm, we show that the set MAW(y) of all minimal absent words of y can be computed in optimal O(n + |MAW(y)|) time and O(n) working space for integer alphabets.
Yuta Fujishige, Yuki Tsujimaru, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
MFCS5
2016 Shortest Unique Substring Queries on Run-Length Encoded Strings
abstract
We consider the problem of answering shortest unique substring (SUS) queries on run-length encoded strings. For a string S, a unique substring u = S[i..j] is said to be a shortest unique substring (SUS) of S containing an interval [s, t] (i <= s <= t <= j) if for any i' <= s <= t <= j' with j-i > j'-i', S[i'..j'] occurs at least twice in S. Given a run-length encoding of size m of a string of length N, we show that we can construct a data structure of size O(m+pi_s(N, m)) in O(m log m + pi_c(N, m)) time such that queries can be answered in O(pi_q(N, m) + k) time, where k is the size of the output (the number of SUSs), and pi_s(N,m), pi_c(N,m), pi_q(N,m) are, respectively, the size, construction time, and query time for a predecessor/successor query data structure of m elements for the universe of [1,N]. Using the data structure by Beam and Fich (JCSS 2002), this results in a data structure of O(m) space that is constructed in O(m log m) time, and answers queries in O(sqrt(log m/loglog m)+k) time.
Takuya Mieno, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
MFCS4
2016 Fully Dynamic Data Structure for LCE Queries in Compressed Space
abstract
A Longest Common Extension (LCE) query on a text T of length N asks for the length of the longest common prefix of suffixes starting at given two positions. We show that the signature encoding G of size w = O(min(z log N log^* M, N)) [Mehlhorn et al., Algorithmica 17(2):183-198, 1997] of T, which can be seen as a compressed representation of T, has a capability to support LCE queries in O(log N + log ell log^* M) time, where ell is the answer to the query, z is the size of the Lempel-Ziv77 (LZ77) factorization of T, and M >= 4N is an integer that can be handled in constant time under word RAM model. In compressed space, this is the fastest deterministic LCE data structure in many cases. Moreover, G can be enhanced to support efficient update operations: After processing G in O(w f_A) time, we can insert/delete any (sub)string of length y into/from an arbitrary position of T in O((y + log Nlog^* M) f_A) time, where f_A = O(min{ (loglog M loglog w)/(logloglog M), sqrt(log w/loglog w)}). This yields the first fully dynamic LCE data structure working in compressed space. We also present efficient construction algorithms from various types of inputs: We can construct G in O(N f_A) time from uncompressed string T; in O(n loglog (n log^* M) log N log^* M) time from grammar-compressed string T represented by a straight-line program of size n; and in O(z f_A log N log^* M) time from LZ77-compressed string T with z factors. On top of the above contributions, we show several applications of our data structures which improve previous best known results on grammar-compressed string processing.
Takaaki Nishimoto, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
MFCS5
2016 Faster Lyndon factorization algorithms for SLP and LZ78 compressed text
Tomohiro I, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2016 Generalized pattern matching and periodicity under substring consistent equivalence relations
Yoshiaki Matsuoka, Takahiro Aoki, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2015 An Opportunistic Text Indexing Structure Based on Run Length Encoding
Yuya Tamakoshi, Keisuke Goto 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CIAC5
2015 LZD Factorization: Simple and Practical Online Grammar Compression with Variable-to-Fixed Encoding
Keisuke Goto 0001, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
CPM4
2015 Semi-dynamic Compact Index for Short Patterns and Succinct van Emde Boas Tree
Yoshiaki Matsuoka, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2015 An Improved Evacuation Guidance System Based on Ant Colony Optimization
Asuka Ohta, Hirotaka Goto, Tomofumi Matsuzawa, Munehiro Takimoto, Yasushi Kambayashi, Masayuki Takeda
IES6
2015 Inferring Strings from Full Abelian Periods
Makoto Nishida, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
ISAAC5
2015 A new characterization of maximal repetitions by Lyndon trees
abstract
We give a new characterization of maximal repetitions (or runs) in strings, using a tree defined on recursive standard factorizations of Lyndon words, called the Lyndon tree. The characterization leads to a remarkably simple novel proof of the linearity of the maximum number of runs ρ(n) in a string of length n. Furthermore, we show an upper bound of ρ(n) < 1.5n, which improves on the best upper bound 1.6n (Crochemore & Ilie 2008) that does not rely on computational verification. The proof also gives rise to a new, conceptually simple linear-time algorithm for computing all the runs in a string. A notable characteristic of our algorithm is that, unlike all existing linear-time algorithms, it does not utilize the Lempel-Ziv factorization of the string.
Hideo Bannai, Tomohiro I, Shunsuke Inenaga, Yuto Nakashima 0001, Masayuki Takeda, Kazuya Tsuruta
SODA5
2015 A Faster Algorithm for Computing Maximal \alpha -gapped Repeats in a String
Yuka Tanimura, Yuta Fujishige, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE6
2015 Detecting regularities on grammar-compressed strings
Tomohiro I, Wataru Matsubara, Kouji Shimohira, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Kazuyuki Narisawa, Ayumi Shinohara
Inf. Comput.6
2015 Constructing LZ78 tries and position heaps in linear time for large alphabets
Yuto Nakashima 0001, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Inf. Process. Lett.5
2015 Compressed automata for dictionary matching
Tomohiro I, Takaaki Nishimoto, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.5
2014 Computing Palindromic Factorizations and Palindromic Covers On-line
Tomohiro I, Shiho Sugimoto, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2014 Inferring Strings from Lyndon Factorization
Yuto Nakashima 0001, Takashi Okabe, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
MFCS (2)6
2014 Shortest Unique Substrings Queries in Optimal Time
Kazuya Tsuruta, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SOFSEM4
2014 Faster Compact On-Line Lempel-Ziv Factorization
abstract
We present a new on-line algorithm for computing the Lempel-Ziv factorization of a string that runs in O(N.log(N)) time and uses only O(N.log(s)) bits of working space, where N is the length of the string and s is the size of the alphabet. This is a notable improvement compared to the performance of previous on-line algorithms using the same order of working space but running in either O(N.log^3(N)) time [Okanohara and Sadakane, 2009] or O(N.log^2(N)) time [Starikovskaya, 2012]. The key to our new algorithm is in the utilization of an elegant but less popular index structure called Directed Acyclic Word Graphs, or DAWGs [Blumer et al., 1985]. We also present an opportunistic variant of our algorithm, which, given the run length encoding of size m of a string of length N, computes the Lempel-Ziv factorization of the string on-line, in O(m.min{log(log(m)).log(log(N))/(log(log(log(N)))), (log(m))^{1/2}/(log(log(m)))^{1/2})}) time and O(m.log(N)) bits of space.
Jun-ichi Yamamoto, Tomohiro I, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
STACS5
2014 Inferring strings from suffix trees and links on a binary alphabet
Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Discret. Appl. Math.4
2013 Converting SLP to LZ78 in almost Linear Time
Hideo Bannai, Pawel Gawrychowski, Shunsuke Inenaga, Masayuki Takeda
CPM4
2013 Efficient Lyndon Factorization of Grammar Compressed Text
Tomohiro I, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM5
2013 From Run Length Encoding to LZ78 and Back Again
abstract
In this paper, we present efficient algorithms for interconversion between Lempel-Ziv 78 (LZ78) encoding and run length encoding (RLE). We show how, given an RLE of size n for a string S, we can compute the corresponding LZ78 encoding of size m for S in O((n + m) log σ) time, where σ is the number of distinct characters appearing in S. We also show how, given an LZ78 encoding of size m for a string S, we can compute the corresponding RLE of size n in O(n + m) time. Both algorithms use O(m) extra working space.
Yuya Tamakoshi, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
DCC5
2013 Computing Convolution on Grammar-Compressed Text
abstract
The convolution between a text string S of length N and a pattern string P of length m can be computed in O(N log m) time by FFT. It is known that various types of approximate string matching problems are reducible to convolution. In this paper, we assume that the input text string is given in a compressed form, as a straight-line program (SLP), which is a context free grammar in the Chomsky normal form that derives a single string. Given an SLP S of size n describing a text S of length N, and an uncompressed pattern P of length m, we present a simple O(nm log m)-time algorithm to compute the convolution between S and P. We then show that this can be improved to O(min{nm, N - α} log m) time, where α ≥ 0 is a value that represents the amount of redundancy that the SLP captures with respect to the length-m substrings. The key of the improvement is our new algorithm that computes the convolution between a trie of size r and a pattern string P of length m in O(r log m) time.
Toshiya Tanaka, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
DCC5
2013 Detecting Regularities on Grammar-Compressed Strings
Tomohiro I, Wataru Matsubara, Kouji Shimohira, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Kazuyuki Narisawa, Ayumi Shinohara
MFCS6
2013 Faster Lyndon Factorization Algorithms for SLP and LZ78 Compressed Text
Tomohiro I, Yuto Nakashima 0001, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE5
2013 Compressed Automata for Dictionary Matching
Tomohiro I, Takaaki Nishimoto, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CIAA5
2013 Palindrome pattern matching
Tomohiro I, Shunsuke Inenaga, Masayuki Takeda
Theor. Comput. Sci.3
2012 Speeding Up q-Gram Mining on Grammar-Based Compressed Texts
Keisuke Goto 0001, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
CPM4
2012 General Algorithms for Mining Closed Flexible Patterns under Various Equivalence Relations
Tomohiro I, Yuki Enokuma, Hideo Bannai, Masayuki Takeda
ECML/PKDD (2)4
2012 Computing q-Gram Non-overlapping Frequencies on SLP Compressed Texts
Keisuke Goto 0001, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
SOFSEM4
2012 Efficient LZ78 Factorization of Grammar Compressed Text
Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
SPIRE3
2012 Eager XPath Evaluation over XML Streams
Kazuhito Hagio, Takashi Ohgami, Hideo Bannai, Masayuki Takeda
SPIRE4
2012 The Position Heap of a Trie
Yuto Nakashima 0001, Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE5
2011 Palindrome Pattern Matching
Tomohiro I, Shunsuke Inenaga, Masayuki Takeda
CPM3
2011 Faster Subsequence and Don't-Care Pattern Matching on Compressed Texts
Takanori Yamamoto, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
CPM4
2011 Online Linear Optimization over Permutations
Shota Yasutake, Kohei Hatano, Shuji Kijima, Eiji Takimoto, Masayuki Takeda
ISAAC5
2011 Fast q-gram Mining on SLP Compressed Strings
Keisuke Goto 0001, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
SPIRE4
2011 Verifying and enumerating parameterized border arrays
Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Theor. Comput. Sci.4
2010 Verifying a Parameterized Border Array in O(n1.5) Time
Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM4
2010 Chimera: Stream-Oriented XML Filtering/Querying Engine
Tatsuya Asai, Shin-ichiro Tago, Hiroya Inakoshi, Seishi Okamoto, Masayuki Takeda
DASFAA (2)5
2010 Sparse Substring Pattern Set Discovery Using Linear Programming Boosting
Kazuaki Kashihara, Kohei Hatano, Hideo Bannai, Masayuki Takeda
Discovery Science4
2010 Counting and Verifying Maximal Palindromes
Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
SPIRE4
2009 Lightweight Parameterized Suffix Array Construction
Tomohiro I, Satoshi Deguchi, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
IWOCA5
2009 Counting Parameterized Border Arrays for a Binary Alphabet
Tomohiro I, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
LATA4
2008 Smooth Boosting for Margin-Based Ranking
Jun-ichi Moribe, Kohei Hatano, Eiji Takimoto, Masayuki Takeda
ALT4
2008 Online Learning of Maximum p-Norm Margin Classifiers with Bias
Kosuke Ishibashi, Kohei Hatano, Masayuki Takeda
COLT3
2008 String Kernels Based on Variable-Length-Don't-Care Patterns
Kazuyuki Narisawa, Hideo Bannai, Kohei Hatano, Shunsuke Inenaga, Masayuki Takeda
Discovery Science5
2008 Context-Sensitive Grammar Transform: Compression and Pattern Matching
Shirou Maruyama, Youhei Tanaka, Hiroshi Sakamoto, Masayuki Takeda
SPIRE4
2008 A Run-Time Efficient Implementation of Compressed Pattern Matching Automata
Tetsuya Matsumoto, Kazuhito Hagio, Masayuki Takeda
CIAA3
2007 Efficient Computation of Substring Equivalence Classes with Suffix Arrays
Kazuyuki Narisawa, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
CPM4
2007 Simple Linear-Time Off-Line Text Compression by Longest-First Substitution
abstract
We consider grammar based text compression with longest-first substitution, where non-overlapping occurrences of a longest repeating substring of the input text are replaced by a new non-terminal symbol. We present a new text compression algorithm by simplifying the algorithm presented in S. Inenaga et al., (2003). We give a new formulation of the correctness proof introducing the sparse lazy suffix tree data structure. We also present another type of longest-first substitution strategy that allows better compression. We show results of preliminary experiments comparing grammar sizes of the two versions of the longest-first strategy and the most frequent strategy
Ryosuke Nakamura, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda
DCC4
2007 Unsupervised Spam Detection Based on String Alienness Measures
Kazuyuki Narisawa, Hideo Bannai, Kohei Hatano, Masayuki Takeda
Discovery Science4
2006 On-Line Linear-Time Construction of Word Suffix Trees
Shunsuke Inenaga, Masayuki Takeda
CPM2
2006 A New Family of String Classifiers Based on Local Relatedness
Yasuto Higa, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda
Discovery Science4
2006 Sparse Directed Acyclic Word Graphs
Shunsuke Inenaga, Masayuki Takeda
SPIRE2
2005 Practical Algorithms for Pattern Based Linear Regression
Hideo Bannai, Kohei Hatano, Shunsuke Inenaga, Masayuki Takeda
Discovery Science4
2005 Fully Incremental LCS Computation
Yusuke Ishida, Shunsuke Inenaga, Ayumi Shinohara, Masayuki Takeda
FCT4
2005 A comparison study between genetic algorithms and bayesian optimize algorithms by novel indices
abstract
Genetic Algorithms (GAs) are a search and optimization technique based on the mechanism of evolution. Recently, another sort of population-based optimization method called Estimation of Distribution Algorithms (EDAs) have been proposed to solve the GA's defects. Although several comparison studies between GAs and EDAs have been made, little is known about differences of statistical features between them. In this paper, we propose new statistical indices which are based on the concepts of crossover and mutation, used in GAs, to analyze the behavior of the population based optimization techniques. We also show simple results of comparison studies between GAs and the Bayesian Optimization Algorithm (BOA), a well-known Estimation of Distribution Algorithms (EDAs).
Naoki Mori, Masayuki Takeda, Keinosuke Matsumoto
GECCO2
2005 ism: Improvisation Supporting Systems with Melody Correction and Key Vibration
Tetsuro Kitahara, Katsuhisa Ishida, Masayuki Takeda
ICEC3
2005 A Bit-Parallel Tree Matching Algorithm for Patterns with Horizontal VLDC's
Hisashi Tsuji, Akira Ishino, Masayuki Takeda
SPIRE3
2005 On-line construction of compact directed acyclic word graphs
Shunsuke Inenaga, Hiromasa Hoshino, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa, Giancarlo Mauri, Giulio Pavesi
Discret. Appl. Math.4
2004 Finding Optimal Pairs of Cooperative and Competing Patterns with Bounded Distance
Shunsuke Inenaga, Hideo Bannai, Heikki Hyyrö, Ayumi Shinohara, Masayuki Takeda, Kenta Nakai, Satoru Miyano
Discovery Science5
2004 An Efficient Pattern Matching Algorithm on a Subclass of Context Free Grammars
Shunsuke Inenaga, Ayumi Shinohara, Masayuki Takeda
Developments in Language Theory3
2004 Finding Optimal Pairs of Patterns
Hideo Bannai, Heikki Hyyrö, Ayumi Shinohara, Masayuki Takeda, Kenta Nakai, Satoru Miyano
WABI4
2004 An O(N2) Algorithm for Discovering Optimal Boolean Pattern Pairs
abstract
We consider the problem of finding the optimal combination of string patterns, which characterizes a given set of strings that have a numeric attribute value assigned to each string. Pattern combinations are scored based on the correlation between their occurrences in the strings and the numeric attribute values. The aim is to find the combination of patterns which is best with respect to an appropriate scoring function. We present an O(N2) time algorithm for finding the optimal pair of substring patterns combined with Boolean functions, where N is the total length of the sequences. The algorithm looks for all possible Boolean combinations of the patterns, e.g., patterns of the form p and not q, which indicates that the pattern pair is considered to occur in a given string s, if p occurs in s, AND q does NOT occur in s. An efficient implementation using suffix arrays is presented, and we further show that the algorithm can be adapted to find the best k-pattern Boolean combination in O(Nk) time. The algorithm is applied to mRNA sequence data sets of moderate size combined with their turnover rates for the purpose of finding regulatory elements that cooperate, complement, or compete with each other in enhancing and/or silencing mRNA decay.
Hideo Bannai, Heikki Hyyrö, Ayumi Shinohara, Masayuki Takeda, Kenta Nakai, Satoru Miyano
IEEE ACM Trans. Comput. Biol. Bioinform.4
2004 Ternary directed acyclic word graphs
Satoru Miyamoto, Shunsuke Inenaga, Masayuki Takeda, Ayumi Shinohara
Theor. Comput. Sci.3
2003 A Method of Extracting Related Words Using Standardized Mutual Information
Tomohiko Sugimachi, Akira Ishino, Masayuki Takeda, Fumihiro Matsuo
Discovery Science3
2003 Discovering Most Classificatory Patterns for Very Expressive Pattern Classes
Masayuki Takeda, Shunsuke Inenaga, Hideo Bannai, Ayumi Shinohara, Setsuo Arikawa
Discovery Science1
2003 On the Length of the Minimum Solution of Word Equations in One Variable
Kensuke Baba, Satoshi Tsuruta, Ayumi Shinohara, Masayuki Takeda
MFCS4
2003 Inferring Strings from Graphs and Arrays
Hideo Bannai, Shunsuke Inenaga, Ayumi Shinohara, Masayuki Takeda
MFCS4
2003 Linear-Time Off-Line Text Compression by Longest-First Substitution
Shunsuke Inenaga, Takashi Funamoto, Masayuki Takeda, Ayumi Shinohara
SPIRE3
2003 Ternary Directed Acyclic Word Graphs
Satoru Miyamoto, Shunsuke Inenaga, Masayuki Takeda, Ayumi Shinohara
CIAA3
2003 Uniform characterizations of polynomial-query learnabilities
Yosuke Hayashi, Satoshi Matsumoto, Ayumi Shinohara, Masayuki Takeda
Theor. Comput. Sci.4
2003 A practical algorithm to find the best subsequence patterns
Masahiro Hirao, Hiromasa Hoshino, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
Theor. Comput. Sci.4
2003 Collage system: a unifying framework for compressed pattern matching
Takuya Kida, Tetsuya Matsumoto, Yusuke Shibata, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
Theor. Comput. Sci.4
2003 Discovering instances of poetic allusion from anthologies of classical Japanese poems
Masayuki Takeda, Tomoko Fukuda, Ichiro Nanri, Mayumi Yamasaki, Kouichi Tamari
Theor. Comput. Sci.1
2003 Discovering characteristic expressions in literary works
Masayuki Takeda, Tetsuya Matsumoto, Tomoko Fukuda, Ichiro Nanri
Theor. Comput. Sci.1
2002 The Minimum DAWG for All Suffixes of a String and Its Applications
Shunsuke Inenaga, Masayuki Takeda, Ayumi Shinohara, Hiromasa Hoshino, Setsuo Arikawa
CPM2
2002 Discovering Best Variable-Length-Don't-Care Patterns
Shunsuke Inenaga, Hideo Bannai, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
Discovery Science4
2002 Space-Economical Construction of Index Structures for All Suffixes of a String
Shunsuke Inenaga, Ayumi Shinohara, Masayuki Takeda, Hideo Bannai, Setsuo Arikawa
MFCS3
2002 Compact Directed Acyclic Word Graphs for a Sliding Window
Shunsuke Inenaga, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
SPIRE3
2002 Processing Text Files as Is: Pattern Matching over Compressed Texts, Multi-byte Character Texts, and Semi-structured Texts
Masayuki Takeda, Satoru Miyamoto, Takuya Kida, Ayumi Shinohara, Shuichi Fukamachi, Takeshi Shinohara, Setsuo Arikawa
SPIRE1
2001 On-Line Construction of Compact Directed Acyclic Word Graphs
Shunsuke Inenaga, Hiromasa Hoshino, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa, Giancarlo Mauri, Giulio Pavesi
CPM4
2001 Multiple Pattern Matching Algorithms on Collage System
Takuya Kida, Tetsuya Matsumoto, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
CPM3
2001 String Resemblance Systems: A Unifying Framework for String Similarity with Applications to Literature and Music
Masayuki Takeda
CPM1
2001 Compressed Pattern Matching for SEQUITUR
abstract
SEQUITUR due to Nevill-Manning and Witten (see Journal of Artificial Intelligence Research, vol.7, p.67-82, 1997) is a powerful program to infer a phrase hierarchy from the input text, that also provides extremely effective compression of large quantities of semi-structured text. In this paper, we address the problem of searching in SEQUITUR compressed text directly. We show a compressed pattern matching algorithm that finds a pattern in compressed text without explicit decompression. We show that our algorithm is approximately 1.27 times faster than a decompression followed by an ordinal search.
Shuichi Mitarai, Masahiro Hirao, Tetsuya Matsumoto, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
Data Compression Conference5
2001 Faster Approximate String Matching over Compressed Text
abstract
Approximate string matching on compressed text was an open problem for almost a decade. The two existing solutions are very new. Despite that they represent important complexity breakthroughs, in most practical cases they are not useful, in the sense that they are slower than uncompressing the text and then searching the uncompressed text. We present a different approach, which reduces the problem to multipattern searching of pattern pieces plus local decompression and direct verification of candidate text areas. We show experimentally that this solution is 10-30 times faster than previous work and up to three times faster than the trivial approach of uncompressing and searching, thus becoming the first practical solution to the problem.
Gonzalo Navarro 0001, Takuya Kida, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
Data Compression Conference3
2001 A Practical Algorithm to Find the Best Episode Patterns
Masahiro Hirao, Shunsuke Inenaga, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
Discovery Science4
2001 Discovering Repetitive Expressions and Affinities from Anthologies of Classical Japanese Poems
Koichiro Yamamoto, Masayuki Takeda, Ayumi Shinohara, Tomoko Fukuda, Ichiro Nanri
Discovery Science2
2001 Fragmentary Pattern Matching: Complexity, Algorithms and Applications for Analyzing Classic Literary Works
Hideaki Hori, Shinichi Shimozono, Masayuki Takeda, Ayumi Shinohara
ISAAC3
2001 On-Line Construction of Symmetric Compact Directed Acyclic Word Graphs
abstract
The Compact Directed Acyclic Word Graph (CDAWG) is a space-eflcient data structure that supports indices of a string. The Symmetric Directed Acyclic Word Graph (SCDAWG) for a string w is a dual structure that supports indices of both w and the reverse of w simultaneously. Blumer et al. gave the first algorithm to construct an SCDAWG from a given string, that works in an of-line manner. In this papec we show an on-line algorithm that constructs an SCDAWGfiom a given string directly.
Shunsuke Inenaga, Hiromasa Hoshino, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
SPIRE4
2001 Musical Sequence Comparison for Melodic and Rhythmic Similarities
abstract
We address the problem of musical sequence comparison for melodic similarity. Starting with a very simple similarity measure, we improve it step-by-step to finally obtain an acceptable measure. While the measure is still simple and has only two tuning parameters, it is better than that proposed by Mongeau and Sankoff (1990) in the sense that it can distinguish variations on a particular theme from a mixed collection of variations on multiple themes by Mozart, more successfully than the Mongeau-Sankoff measure. We also present a measure for quantifying rhythmic similarity and evaluate its performance on popular Japanese songs.
T. Kadota, Masahiro Hirao, Akira Ishino, Masayuki Takeda, Ayumi Shinohara, Fumihiro Matsuo
SPIRE4
2000 Speeding Up Pattern Matching by Text Compression
Yusuke Shibata, Takuya Kida, Shuichi Fukamachi, Masayuki Takeda, Ayumi Shinohara, Takeshi Shinohara, Setsuo Arikawa
CIAC4
2000 A Boyer-Moore Type Algorithm for Compressed Pattern Matching
Yusuke Shibata, Tetsuya Matsumoto, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
CPM3
2000 A Practical Algorithm to Find the Best Subsequence Patterns
Masahiro Hirao, Hiromasa Hoshino, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
Discovery Science4
2000 Discovering Characteristic Expressions from Literary Works: A New Text Analysis Method beyond N-Gram Statistics and KWIC
Masayuki Takeda, Tetsuya Matsumoto, Tomoko Fukuda, Ichiro Nanri
Discovery Science1
2000 Fully Compressed Pattern Matching Algorithm for Balanced Straight-Line Programs
abstract
We consider a fully compressed pattern matching problem, where both text T and pattern P are given by its succinct representation, in terms of straight-line programs and its variant. The length of the text T and pattern P may grow exponentially with respect to its description size n and m, respectively. The best known algorithm for the problems runs in O(n/sup 2/m/sup 2/) time using O(nm) space. The authors introduce a variant of straight-line programs, called balanced straight-line programs so that we establish a faster fully compressed pattern matching algorithm. Although the compression ratio of balanced straight-line programs may be worse than the original straight-line programs, they can still express exponentially long strings. Our algorithm runs in O(nm) time using O(nm) space.
Masahiro Hirao, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
SPIRE3
2000 Online Construction of Subsequence Automata for Multiple Texts
abstract
We consider a deterministic finite automaton which accepts all subsequences of a set of texts, called subsequence automaton. We show an online algorithm for constructing a subsequence automaton for a set of texts. It runs in O(|/spl Sigma/|(m+k)+N) time using O(|/spl Sigma/|m) space, where |/spl Sigma/| is the size of alphabet, m is the size of the resulting subsequence automaton, k is the number of texts, and N is the total length of texts. It can be used to preprocess a given set S of texts in such a way that for any query /spl omega/ /spl isin/ /spl Sigma/*, returns in O(|/spl omega/|) time the number of texts in S which contain /spl omega/ as a subsequence. We also show an upper bound of the size of automaton compared to the minimum automaton.
Hiromasa Hoshino, Ayumi Shinohara, Masayuki Takeda, Setsuo Arikawa
SPIRE3
2000 Bit-Parallel Approach to Approximate String Matching in Compressed Texts
abstract
Addresses the problem of approximate string matching on compressed text. We consider this problem for a text string described in terms of a collage system, which is a formal system proposed by T. Kida et al. (1999) that captures various dictionary-based compression methods. We present an algorithm that exploits bit-parallelism, assuming that our problem fits in a single machine word, e.g. (m-k)(k+1)/spl les/L, where m is the pattern length, k is the number of allowed errors and L is the length, in bits, of the machine word. For a class of simple collage systems, the algorithm runs in O(k/sup 2/(/spl par//spl Dscr//spl par/+|/spl Sscr/|)+km) time using O(k/sup 2//spl par//spl Dscr//spl par/) space, where /spl par//spl Dscr//spl par/ is the size of dictionary /spl Dscr/ and |/spl Sscr/| is the number of tokens in the sequence /spl Sscr/. The LZ78 (Lempel-Ziv, 1978) and the LZW (Lempel-Ziv-Welch, 1984) compression methods are covered by this class. Since we can regard n=/spl par//spl Dscr//spl par/+|/spl Sscr/| as the compressed length, the time and space complexities are O(k/sup 2/n+km) and O(k/sup 2/n), respectively. For general k and m, they become O(k/sup 3/mn/L+km) and O(k/sup 3/mn/L). Thus, our algorithm is competitive to the algorithm proposed by J. Ka/spl uml/rkka/spl uml/inen, et al. (2000), which runs in O(km) time using O(kmn) space, when k=O(/spl radic/L).
Tetsuya Matsumoto, Takuya Kida, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
SPIRE3
1999 Shift-And Approach to Pattern Matching in LZW Compressed Text
Takuya Kida, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
CPM2
1999 Pattern Matching in Text Compressed by Using Antidictionaries
Yusuke Shibata, Masayuki Takeda, Ayumi Shinohara, Setsuo Arikawa
CPM2
1999 Discovering Poetic Allusion in Anthologies of Classical Japanese Poems
Kouichi Tamari, Mayumi Yamasaki, Takuya Kida, Masayuki Takeda, Tomoko Fukuda, Ichiro Nanri
Discovery Science4
1998 Multiple Pattern Matching in LZW Compressed Text
abstract
We address the problem of searching in LZW compressed text directly, and present a new algorithm for finding multiple patterns by simulating the move of the Aho-Corasick (1975) pattern matching machine. The new algorithm finds all occurrences of multiple patterns whereas the algorithm proposed by Amir, Benson, and Farach (see Journal of Computer and System Sciences, vol.52, p.299-307, 1996) finds only the first occurrence of a single pattern. The new algorithm runs in O(n+m/sup 2/+r/sub a/) time using O(n+m/sup 2/) space, where n is the length of the compressed text, m is the length of the total length of the patterns, and r is the number of occurrences of the patterns. We implemented a simple version of the algorithm, and showed that it is approximately twice faster than a decompression followed by a search using the Aho-Corasick machine.
Takuya Kida, Masayuki Takeda, Ayumi Shinohara, Masamichi Miyazaki, Setsuo Arikawa
Data Compression Conference2
1998 Uniform Characterizations of Polynomial-Query Learnabilities
Yosuke Hayashi, Satoshi Matsumoto, Ayumi Shinohara, Masayuki Takeda
Discovery Science4
1998 Discovering Characteristic Patterns from Collections of Classical Japanese Poems
Mayumi Yamasaki, Masayuki Takeda, Tomoko Fukuda, Ichiro Nanri
Discovery Science2
1997 An Improved Pattern Matching Algorithm for Strings in Terms of Straight-Line Programs
Masamichi Miyazaki, Ayumi Shinohara, Masayuki Takeda
CPM3
1993 A Fast String-Searching Algorithm for Multiple Patterns
Noriyoshi Uratani, Masayuki Takeda
Inf. Process. Manag.2