Abstract
String matching is to find a substring in a string. The algorithms commonly used for finding a matching are the brute-force algorithm, Boyer-Moore algorithm, and Knuth-Morris-Pratt algorithm. The brute-force algorithm is intuitive. The Boyer-Moore and Knuth-Morris-Pratt algorithms are more efficient than the brute-force string matching algorithm, but they are more difficult to understand than the brute-force algorithm. We have created the animations for helping instructors to teach and students to learn these algorithms. This paper presents these animations.
Original language | American English |
---|---|
Journal | Journal of Computing Sciences in Colleges |
Volume | 35 |
DOIs | |
State | Published - Apr 1 2020 |
Keywords
- Algorithms
- Boyer-Moore algorithm
- KMP algorithm
- animation
- brute-force algorithm
- data structures
- string matching
DC Disciplines
- Computer Sciences