preprint وصول مفتوح

Fast Algorithms for Exact String Matching

  • arXiv (Cornell University)
  • Cornell University
Research footprint

At a glance

الاستشهادات
1
المراجع
25
Comments
0
Paper overview

Abstract

Given a pattern string $P$ of length $n$ and a query string $T$ of length $m$, where the characters of $P$ and $T$ are drawn from an alphabet of size $Δ$, the {\em exact string matching} problem consists of finding all occurrences of $P$ in $T$. For this problem, we present algorithms that in $O(nΔ^2)$ time pre-process $P$ to essentially identify $sparse(P)$, a rarely occurring substring of $P$, and then use it to find occurrences of $P$ in $T$ efficiently. Our algorithms require a worst case search time of $O(m)$, and expected search time of $O(m/min(|sparse(P)|, Δ))$, where $|sparse(P)|$ is at least $δ$ (i.e. the number of distinct characters in $P$), and for most pattern strings it is observed to be $Ω(n^{1/2})$.

Record transparency

Publication details

DOI
10.48550/arxiv.1509.09228
OpenAlex
W2174021104
Document type
preprint
Language
EN
Source
arXiv (Cornell University)
Last metadata update
المجتمع

Comments

تسجيل الدخول للانضمام إلى النقاش.

  1. لا توجد تعليقات بعد. ابدأ النقاش.