{"title":"简单线性时重复因式分解","authors":"Yuki Yonemoto, Shunsuke Inenaga","doi":"arxiv-2408.04253","DOIUrl":null,"url":null,"abstract":"A factorization $f_1, \\ldots, f_m$ of a string $w$ of length $n$ is called a\nrepetition factorization of $w$ if $f_i$ is a repetition, i.e., $f_i$ is a form\nof $x^kx'$, where $x$ is a non-empty string, $x'$ is a (possibly-empty) proper\nprefix of $x$, and $k \\geq 2$. Dumitran et al. [SPIRE 2015] presented an\n$O(n)$-time and space algorithm for computing an arbitrary repetition\nfactorization of a given string of length $n$. Their algorithm heavily relies\non the Union-Find data structure on trees proposed by Gabow and Tarjan [JCSS\n1985] that works in linear time on the word RAM model, and an interval stabbing\ndata structure of Schmidt [ISAAC 2009]. In this paper, we explore more\ncombinatorial insights into the problem, and present a simple algorithm to\ncompute an arbitrary repetition factorization of a given string of length $n$\nin $O(n)$ time, without relying on data structures for Union-Find and interval\nstabbing. Our algorithm follows the approach by Inoue et al. [ToCS 2022] that\ncomputes the smallest/largest repetition factorization in $O(n \\log n)$ time.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"11 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Simple Linear-time Repetition Factorization\",\"authors\":\"Yuki Yonemoto, Shunsuke Inenaga\",\"doi\":\"arxiv-2408.04253\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"A factorization $f_1, \\\\ldots, f_m$ of a string $w$ of length $n$ is called a\\nrepetition factorization of $w$ if $f_i$ is a repetition, i.e., $f_i$ is a form\\nof $x^kx'$, where $x$ is a non-empty string, $x'$ is a (possibly-empty) proper\\nprefix of $x$, and $k \\\\geq 2$. Dumitran et al. [SPIRE 2015] presented an\\n$O(n)$-time and space algorithm for computing an arbitrary repetition\\nfactorization of a given string of length $n$. Their algorithm heavily relies\\non the Union-Find data structure on trees proposed by Gabow and Tarjan [JCSS\\n1985] that works in linear time on the word RAM model, and an interval stabbing\\ndata structure of Schmidt [ISAAC 2009]. In this paper, we explore more\\ncombinatorial insights into the problem, and present a simple algorithm to\\ncompute an arbitrary repetition factorization of a given string of length $n$\\nin $O(n)$ time, without relying on data structures for Union-Find and interval\\nstabbing. Our algorithm follows the approach by Inoue et al. [ToCS 2022] that\\ncomputes the smallest/largest repetition factorization in $O(n \\\\log n)$ time.\",\"PeriodicalId\":501525,\"journal\":{\"name\":\"arXiv - CS - Data Structures and Algorithms\",\"volume\":\"11 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-08-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Data Structures and Algorithms\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2408.04253\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.04253","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A factorization $f_1, \ldots, f_m$ of a string $w$ of length $n$ is called a
repetition factorization of $w$ if $f_i$ is a repetition, i.e., $f_i$ is a form
of $x^kx'$, where $x$ is a non-empty string, $x'$ is a (possibly-empty) proper
prefix of $x$, and $k \geq 2$. Dumitran et al. [SPIRE 2015] presented an
$O(n)$-time and space algorithm for computing an arbitrary repetition
factorization of a given string of length $n$. Their algorithm heavily relies
on the Union-Find data structure on trees proposed by Gabow and Tarjan [JCSS
1985] that works in linear time on the word RAM model, and an interval stabbing
data structure of Schmidt [ISAAC 2009]. In this paper, we explore more
combinatorial insights into the problem, and present a simple algorithm to
compute an arbitrary repetition factorization of a given string of length $n$
in $O(n)$ time, without relying on data structures for Union-Find and interval
stabbing. Our algorithm follows the approach by Inoue et al. [ToCS 2022] that
computes the smallest/largest repetition factorization in $O(n \log n)$ time.