全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 String matching, occurrence, shift?

又称: occurrence (string matching) · string matching

Definition 25.1 University Computer Science — Year 2 · 第 25 章 — Text Algorithms and Compression

Let T=T[0..n−1]T = T[0..n-1] be a text and P=P[0..m−1]P = P[0..m-1] a pattern, words over an alphabet Σ\Sigma, with 1≤m1 \leq m. A shift is an integer ss with 0≤s≤n−m0 \leq s \leq n - m; it is an occurrence of PP when T[s+j]=P[j]T[s + j] = P[j] for 0≤j<m0 \leq j < m. String matching is the problem of finding every occurrence.

在原文中阅读 →