References & Citations
Computer Science > Data Structures and Algorithms
Title: Detecting Unary Patterns
(Submitted on 31 Mar 2016 (this version), latest version 18 Jul 2017 (v5))
Abstract: Given a pattern $p = s_1xs_2x\cdots s_{r-1}xs_r$ such that $x$ is a variable and $s_1,s_2,\ldots,s_r$ are strings that contain no variables, we describe an algorithm that reports all $P$ instances of $p$ in the input string of length $n$ in a compact form in $O(rn)$ time, so that one can report those occurrences in $O(P)$ time. We briefly describe solutions to a series of related problems.
Submission history
From: Dmitry Kosolobov [view email][v1] Thu, 31 Mar 2016 21:25:42 GMT (220kb,D)
[v2] Mon, 11 Apr 2016 10:24:18 GMT (221kb,D)
[v3] Mon, 9 May 2016 21:35:29 GMT (221kb,D)
[v4] Tue, 28 Feb 2017 17:43:06 GMT (202kb,D)
[v5] Tue, 18 Jul 2017 16:01:01 GMT (163kb,D)
Link back to: arXiv, form interface, contact.