Type in a text and a pattern to search and enjoy a colored output of what the KMP algorithm does.
You can just start it without parameters and it will ask for a text and a pattern, or you can run it with the text and pattern as parameters like his: ... <text> <pattern>
You need the .NET Core runtime. Get it here.
$ dotnet KuthMorrisPratt.dll
You will need the .NET Core SDK. Also availiable here.
dotnet build
(or to start it after building: dotnet run
)
You can do whatever you want to do as long as it is not intentionally harming people and you link back to this repo.