arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2012.07892cs.DS
收藏

正则和不定字符串的一种新方法

A New Approach to Regular & Indeterminate Strings

Felipe A. Louza, Neerja Mhaskar, W. F. Smyth

摘要:

在本文中,我们提出了一个新的,更适当的定义,定期和不定字符串。规则字符串是与其条目全部由单个字母组成的字符串“同构”的字符串,但是其本身可以包括包含多个字母的条目。不规则的字符串称为不确定的。我们首先提出了一个新的模型表示字符串,定期或不确定的,然后继续描述一个线性时间算法,以确定是否字符串$x = x[1..n]$是定期的,如果是这样,以取代它的字典最少(lex-least)字符串$y$的条目都是单字母。此外,我们连接字符串的正则性的传递闭包问题的图,在我们的特殊情况下,可以有效地解决。然后,我们介绍了一个可行的回文数组MP的字符串的想法,并证明了每一个可行的MP对应于一些(定期或不确定)字符串。我们描述了一个算法,构造一个字符串$x$对应于给定的可行MP,同时确保只要可能的$x$是定期的,如果是这样,那么lex-least。最后一节概述了新的研究方向,建议这种改变的角度对规则和不定字符串。

英文摘要:

In this paper we propose a new, more appropriate definition of regular and indeterminate strings. A regular string is one that is "isomorphic" to a string whose entries all consist of a single letter, but which nevertheless may itself include entries containing multiple letters. A string that is not regular is said to be indeterminate. We begin by proposing a new model for the representation of strings, regular or indeterminate, then go on to describe a linear time algorithm to determine whether or not a string $x = x[1..n]$ is regular and, if so, to replace it by a lexicographically least (lex-least) string $y$ whose entries are all single letters. Furthermore, we connect the regularity of a string to the transitive closure problem on a graph, which in our special case can be efficiently solved. We then introduce the idea of a feasible palindrome array MP of a string, and prove that every feasible MP corresponds to some (regular or indeterminate) string. We describe an algorithm that constructs a string $x$ corresponding to given feasible MP, while ensuring that whenever possible $x$ is regular and if so, then lex-least. A final section outlines new research directions suggested by this changed perspective on regular and indeterminate strings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑