Skip to content

Efficient implementation of the Knuth-Morris-Pratt (KMP) algorithm in Kotlin for string pattern matching. Optimized for performance with native coroutines. Ideal for text processing and search applications.

Notifications You must be signed in to change notification settings

darian-catalin-cucer/kmp-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

KMP Algorithm in Kotlin

KMP (Knuth-Morris-Pratt) is a linear-time pattern matching algorithm that finds the occurrence of a substring within a given string.

Getting Started

These instructions will help you to understand the implementation of the KMP Algorithm in Kotlin language. This project contains the code for the KMP algorithm, which can be used to perform pattern matching operations on strings.

Prerequisites

Before you begin, you should have a basic understanding of string operations, algorithms and Kotlin programming language.

Installing

To use this repository, simply clone the repository and run the code on your local machine.

Running the tests

To test the code, you can write test cases in the main function and run the code. You will see the output of the code, which will show you whether the KMP algorithm is working as expected.

Built With

  • Kotlin

Contributing

Feel free to contribute to this repository by creating pull requests or by reporting issues.

License

This project is licensed under the MIT License.

Acknowledgements

  • Knuth, Morris, and Pratt for the KMP algorithm.

About

Efficient implementation of the Knuth-Morris-Pratt (KMP) algorithm in Kotlin for string pattern matching. Optimized for performance with native coroutines. Ideal for text processing and search applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages