Introduction - If you have any usage issues, please Google them yourself
Findstr. CPP operation results:
Results of GetNext- IndexKMP:
Enter the main string s:acabaabcaabaabcac
Input mode string t:abaabcac
Main string s length =17
Mode string t length =8
Next next [0] = - 1 = 1 next [1] [2] = 0 next [3] = 0 next [4] = 1
= 1 next next [5] [6] = 0 next [7] = 1 next [8] = 0
The mode string is in the main string starting at the 10th character
Results of GetNext- IndexKMP:
Next [1]=0 next[2]=1 next[3]=1 next[4]=1 next[5]=2
Next [6] = 1 next [7] = 1
The mode string is in the main string starting at the 10th character
Results of GetNextVal- IndexKMP:
Next [1]=0 next[2]=1 next[3]=1 next[4]=0 next[5]=2
Next [6] = 1 next [7] = 1
The mode string is in the main string starting at the 10th character
Results of GetNext- IndexKMP:
Next [1]=0 next[2]=1 next[3]=1 next[4]=1 next[5]=2
Next [6] = 1 next [7] = 1
The mode string t starts from the tenth character in the main string s
Results of IndexBF:
The mode string t starts from the tenth character in the main string s
Packet : 81404610findstr.rar filelist
Findstr.cpp