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

Add KMP #37

Open
eirc0329 opened this issue Apr 21, 2023 · 1 comment · May be fixed by #77
Open

Add KMP #37

eirc0329 opened this issue Apr 21, 2023 · 1 comment · May be fixed by #77
Assignees
Labels
proposal Proposal for new content

Comments

@eirc0329
Copy link

eirc0329 commented Apr 21, 2023

Outline:

  • Introduction to KMP algortithm
    • Prefix function
    • Time complextiy
    • Search for a substring in a string
  • Applications
    • Counting the number of occurrences of each prefix
    • The number of different substring in a string
    • Remove all occurrences of string t in string s using KMP Algorithm
    • Automaton of KMP

Problems:

https://codeforces.com/problemset/problem/535/D
https://codeforces.com/problemset/problem/471/D
https://codeforces.com/contest/432/problem/D

Reference:

https://cp-algorithms.com/string/prefix-function.html
https://oi-wiki.org/string/kmp/
https://www.geeksforgeeks.org/remove-all-occurrences-of-string-t-in-string-s-using-kmp-algorithm/?ref=rp
https://labuladong.gitbook.io/algo-en/i.-dynamic-programming/kmpcharactermatchingalgorithmindynamicprogramming#i.-overview-of-kmp-algorithm

@eirc0329 eirc0329 reopened this Apr 21, 2023
@eirc0329 eirc0329 changed the title KMP add KMP Apr 21, 2023
@eirc0329 eirc0329 changed the title add KMP Add KMP Apr 21, 2023
@harry900831
Copy link
Contributor

Maybe you need more section under "Introduction to KMP algorithm"

@harry900831 harry900831 added the proposal Proposal for new content label May 8, 2023
@harry900831 harry900831 linked a pull request May 18, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Proposal for new content
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants