Algorithm Analysis (CSC 301 2015F) : EBoards

CSC301.01 2015F, Class 38: Improved String-Matching Algorithms


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit

Academic

Peer

Questions

Matching Multiple Strings

Improved Hashing

Analysis

What if the Strings are not the same length?

Other Approaches to Matching Single Strings

We would hope that we can do better.

We want a table that tells us how many characters from the pattern still match when we fail to match at a particular character.

Pattern / Characters you can keep

    a a a b
    0 0 0 2

    a b a c

    a b a b a c
    0

Think about this for FRIDAY!

Knuth-Morris-Pratt, Introduced