Data Structures & AlgorithmsVery hardICPC regional · strings

Problem: What is the purpose of a 'suffix link' in Ukkonen's or Aho-Corasick's construction?

  1. A. It points to the longest proper suffix that is also a node in the structure
  2. B. It stores the depth of each node
  3. C. It links all leaves in order
  4. D. It marks the end of a word only

Correct answer: A. It points to the longest proper suffix that is also a node in the structure

Suffix links let the construction jump to the next shorter matching suffix without restarting.

More Coding Interview Problems questions

Exams that ask this topic