String Rearrangement Inequalities and a Total Order Between Primitive Words

Ruixi Luo, Taikun Zhu, Kai Jin
{"title":"String Rearrangement Inequalities and a Total Order Between Primitive Words","authors":"Ruixi Luo, Taikun Zhu, Kai Jin","doi":"10.48550/arXiv.2204.11213","DOIUrl":null,"url":null,"abstract":"We study the following rearrangement problem: Given $n$ words, rearrange and concatenate them so that the obtained string is lexicographically smallest (or largest, respectively). We show that this problem reduces to sorting the given words so that their repeating strings are non-decreasing (or non-increasing, respectively), where the repeating string of a word $A$ refers to the infinite string $AAA\\ldots$. Moreover, for fixed size alphabet $\\Sigma$, we design an $O(L)$ time sorting algorithm of the words (in the mentioned orders), where $L$ denotes the total length of the input words. Hence we obtain an $O(L)$ time algorithm for the rearrangement problem. Finally, we point out that comparing primitive words via comparing their repeating strings leads to a total order, which can further be extended to a total order on the finite words (or all words).","PeriodicalId":101589,"journal":{"name":"Frontiers in Algorithmics","volume":"31 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-04-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Algorithmics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2204.11213","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

We study the following rearrangement problem: Given $n$ words, rearrange and concatenate them so that the obtained string is lexicographically smallest (or largest, respectively). We show that this problem reduces to sorting the given words so that their repeating strings are non-decreasing (or non-increasing, respectively), where the repeating string of a word $A$ refers to the infinite string $AAA\ldots$. Moreover, for fixed size alphabet $\Sigma$, we design an $O(L)$ time sorting algorithm of the words (in the mentioned orders), where $L$ denotes the total length of the input words. Hence we obtain an $O(L)$ time algorithm for the rearrangement problem. Finally, we point out that comparing primitive words via comparing their repeating strings leads to a total order, which can further be extended to a total order on the finite words (or all words).
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
字符串重排不等式和原语词之间的总顺序
我们研究以下重排问题:给定$n$个单词,重新排列并连接它们,使获得的字符串在字典顺序上分别是最小的(或最大的)。我们证明,这个问题可以简化为对给定的单词进行排序,使它们的重复字符串是非递减的(或分别是非递增的),其中单词的重复字符串$ a $指的是无限字符串$AAA\ldots$。此外,对于固定大小的字母表$\Sigma$,我们设计了$O(L)$时间排序算法(按照上述顺序),其中$L$表示输入单词的总长度。因此,我们得到了一个$O(L)$ time的重排算法。最后,我们指出,通过比较原语单词的重复字符串来比较原语单词会导致一个总顺序,这个顺序可以进一步扩展到有限单词(或所有单词)上的总顺序。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Equilibrium Analysis of Block Withholding Attack: An Evolutionary Game Perspective String Rearrangement Inequalities and a Total Order Between Primitive Words Buffer Minimization with Conflicts on a Line Minimizing Energy on Homogeneous Processors with Shared Memory Two-Way Jumping Automata
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1