Prefix and suffix

Home > Computer Science > Algorithms and data structures > String algorithms > Prefix and suffix

The prefix and suffix of a string refer to the characters that come before or after a given substring. These components can be used to optimize string searching and matching algorithms.