Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-nr4z6 Total loading time: 0 Render date: 2024-05-11T17:18:11.282Z Has data issue: false hasContentIssue false

Chapter 4 - Generalized String Matching

from I - ANALYSIS

Published online by Cambridge University Press:  05 July 2015

Philippe Jacquet
Affiliation:
Bell Laboratories, New Jersey
Wojciech Szpankowski
Affiliation:
Purdue University, Indiana
Get access

Summary

In this chapter we consider generalized pattern matching, in which a set of patterns (rather than a single pattern) is given. We assume here that the pattern is a pair of sets of words (W0, W), where Wi consists of the sets WiAmi (i.e., all words in Wi have a fixed length mi). The set W0 is called the forbidden set. For W0 = ∅ one is interested in the number of pattern occurrences On(W), defined as the number of patterns from W occurring in a text generated by a (random) source. Another parameter of interest is the number of positions in where a pattern from W appears (clearly, several patterns may occur at the same positions but words from Wi must occur in different locations); this quantity we denote as Πn. If we define as the number of positions where a word from Wi occurs, then

Notice that at any given position of the text and for a given i only one word from Wi can occur.

For W0 ≠ ∅ one studies the number of occurrences On(W) under the condition that, that is, there is no occurrence of a pattern from W0 in the text. This could be called constrained pattern matching since one restricts the text to those strings that do not contain strings from W0. A simple version of constrained pattern matching was discussed in Chapter 3 (see also Exercises 3.3, 3.6, and 3.10).

In this chapter we first present an analysis of generalized pattern matching with W0 = ∅ and d = 1, which we call the reduced pattern set (i.e., no pattern is a substring of another pattern).

Type
Chapter
Information
Analytic Pattern Matching
From DNA to Twitter
, pp. 75 - 108
Publisher: Cambridge University Press
Print publication year: 2015

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×