Efficient computation of longest single-arm-gapped palindromes in a string

Shintaro Narisada, Diptarama Hendrian, Kazuyuki Narisawa, Shunsuke Inenaga, Ayumi Shinohara

研究成果: Contribution to journalArticle査読

抄録

In this paper, we introduce new types of approximate palindromes called single-arm-gapped palindromes (shortly SAGPs). A SAGP contains a gap in either its left or right arm, which is in the form of either wgucuRwR or wucuRgwR, where w and u are non-empty strings, wR and uR are respectively the reversed strings of w and u, g is a string called a gap, and c is either a single character or the empty string. Here we call wu and uRwR the arm of the SAGP, and |uv| the length of the arm. We classify SAGPs into two groups: those which have ucuR as a maximal palindrome (type-1), and the others (type-2). We propose several algorithms to compute type-1 SAGPs with longest arms occurring in a given string, based on suffix arrays. Then, we propose a linear-time algorithm to compute all type-1 SAGPs with longest arms, based on suffix trees. Also, we show how to compute type-2 SAGPs with longest arms in linear time. We also perform some preliminary experiments to show practical performances of the proposed methods.

本文言語英語
ページ(範囲)160-173
ページ数14
ジャーナルTheoretical Computer Science
812
DOI
出版ステータス出版済み - 4 6 2020

All Science Journal Classification (ASJC) codes

  • 理論的コンピュータサイエンス
  • コンピュータ サイエンス(全般)

フィンガープリント

「Efficient computation of longest single-arm-gapped palindromes in a string」の研究トピックを掘り下げます。これらがまとまってユニークなフィンガープリントを構成します。

引用スタイル