MCPcopy Create free account
hub / github.com/HarshCasper/NeoAlgo / GenerateLPS

Function GenerateLPS

C-Plus-Plus/String_Algorithms/KMP_Algorithm.cpp:23–48  ·  view source on GitHub ↗

Step 1: Pre-Processing: Time Complexity O(m) Making 'lps' Array (Length of longest Prfix which is also the suffix). Here lps[i] represent the length of the longest suffix which is also a prefix O(M)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Check_PatternFunction · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected