Skip to content

Knuth–Morris–Pratt(KMP) algorithm #400

Closed
@sjathin

Description

@sjathin

Description of the problem

Implement a string matching algorithm - Knuth–Morris–Pratt

Example of the problem

Input
  1. string = "njfsonqwertylksmfds"
  2. subString = "qwerty"
Output

True

References/Other comments

This is the first string matching algorithm in the project, it would be good to have a design that allows to have multiple string matching algorithms.

References

  1. ICS 161: Design and Analysis of Algorithms Lecture notes for February 27, 1996
  2. Knuth–Morris–Pratt algorithm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions