Tag

KMP

1 views collected around this technical thread.

IT Services Circle
IT Services Circle
Dec 24, 2024 · Fundamentals

Understanding the KMP String Matching Algorithm with Implementation and Optimizations

This article explains the Knuth-Morris-Pratt (KMP) string‑matching algorithm, describes how the next array is built to capture prefix‑suffix information, shows Java implementations of the search and next‑array construction, and discusses common optimizations to reduce redundant comparisons.

JavaKMPNext Array
0 likes · 9 min read
Understanding the KMP String Matching Algorithm with Implementation and Optimizations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 12, 2024 · Mobile Development

Kotlin Multiplatform (KMP) Overview: Concepts, Advantages, Demo, and Ecosystem

This article introduces Kotlin Multiplatform (KMP), explains its core concepts and advantages, walks through a simple demo project with code snippets and build configurations, and discusses the underlying compilation process, Compose UI sharing, ecosystem libraries, and real‑world industry adoption.

ComposeCross-PlatformGradle
0 likes · 14 min read
Kotlin Multiplatform (KMP) Overview: Concepts, Advantages, Demo, and Ecosystem
JD Tech
JD Tech
Apr 1, 2022 · Fundamentals

Advanced Matching Algorithms and Graph Data Structures: KMP, Rabin‑Karp, Boyer‑Moore, Trie, Double‑Array Trie, and AC Automaton

This article introduces common graph concepts and several advanced string‑matching algorithms—including Brute‑Force, Rabin‑Karp, KMP, Boyer‑Moore, AC automaton, Trie, and Double‑Array Trie—explaining their principles, implementations, complexity analyses, and typical application scenarios for search systems.

KMPTriealgorithms
0 likes · 20 min read
Advanced Matching Algorithms and Graph Data Structures: KMP, Rabin‑Karp, Boyer‑Moore, Trie, Double‑Array Trie, and AC Automaton
Sohu Tech Products
Sohu Tech Products
Mar 25, 2020 · Fundamentals

Understanding Brute‑Force, Boyer‑Moore, and KMP String‑Matching Algorithms with Java Code

This article explains the Brute‑Force (BF), Boyer‑Moore (BM), and Knuth‑Morris‑Pratt (KMP) string‑matching algorithms, illustrates their operation with step‑by‑step visual examples, discusses the inefficiencies of BF, the shift rules of BM, and the prefix‑suffix logic of KMP, and provides a complete Java implementation including the construction of the next array.

Boyer-MooreJavaKMP
0 likes · 10 min read
Understanding Brute‑Force, Boyer‑Moore, and KMP String‑Matching Algorithms with Java Code
Beike Product & Technology
Beike Product & Technology
Aug 23, 2019 · Fundamentals

KMP String Matching Algorithm: Theory, Implementation, and Comparison with Other Search Methods

This article explains the KMP string‑matching algorithm, how it builds the prefix (next) table to avoid the O(M·N) worst‑case of naive search, provides JavaScript implementations, compares it with Boyer‑Moore and V8's indexOf strategy, and includes detailed code examples.

JavaScriptKMPPrefix Table
0 likes · 10 min read
KMP String Matching Algorithm: Theory, Implementation, and Comparison with Other Search Methods