Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented KMP in C++ #332

Merged
merged 6 commits into from
Oct 10, 2018
Merged

Implemented KMP in C++ #332

merged 6 commits into from
Oct 10, 2018

Conversation

Mysjkin
Copy link
Contributor

@Mysjkin Mysjkin commented Oct 9, 2018

Description

Please describe what changes you have made.
implemented the Knuth-Morris-Pratt algorithm in C++ and documentation for it.

  • Added a folder called Knuth-Morris-Pratt.
  • Added a file called KMP.cpp that implements KMP.
  • Added documentation of the algorithm.

Related Issue

This resolves issue #324.

Please link to the issue here: #324

How Has This Been Tested? (Optional)

By performing a searching for matches in text "bacbababaabacabababaabaca" with pattern "abaabaca".

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (change which fixes an issue with the algorithm)

  • [x ] New Algorithm (non-breaking change which adds functionality)

  • [x ] Documentation

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • [x ] My code follows the code style of this project.

  • My change requires a change to the documentation.

  • I have updated the documentation accordingly.

  • [x ] I have read the CONTRIBUTING document.

@Mysjkin Mysjkin changed the title Implementing kmp Implemented KMP in C++ Oct 9, 2018
@tstreamDOTh tstreamDOTh merged commit e7f398e into Asiatik:master Oct 10, 2018
@Mysjkin Mysjkin deleted the Implementing-KMP branch October 10, 2018 18:58
jigyasak05 pushed a commit to jigyasak05/codezilla that referenced this pull request Oct 16, 2018
* Folder structure and Readme file.

* Readme documentation.

* Pseudocode for kmp in readme.

* KMP algorithm implementation and readme update.

* Readme pesudocode reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants