Using Animations to Teach String Matching Effectively

Y. Daniel Liang, Lixin Li, Weitian Tong

Research output: Contribution to journalArticlepeer-review

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 languageAmerican English
JournalJournal of Computing Sciences in Colleges
Volume35
DOIs
StatePublished - Apr 1 2020

Keywords

  • Algorithms
  • Boyer-Moore algorithm
  • KMP algorithm
  • animation
  • brute-force algorithm
  • data structures
  • string matching

DC Disciplines

  • Computer Sciences

Fingerprint

Dive into the research topics of 'Using Animations to Teach String Matching Effectively'. Together they form a unique fingerprint.

Cite this