Skip to content

Latest commit

 

History

History

26-string-processing

Unit 26: String processing

This unit covers basic string processing: Some ad-hoc information, the trie datastructure, and the following string matching algorithms

  • Naive (quadratic)
  • Rabin-Karp (worst case quadratic, average case linear or worst case linear, with some error possibility)
  • Z-algorithm (linear)
  • Knuth-Morris-Pratt (linear)

Some complementary (not for Z-algorithm or Rabin-Karp) notes can be found in section 6 of the book Competitive Programming 3. Additional techniques can be found there as well

Prerequisites

Practice problems

Ad hoc

Tries

String matching