Skip to content

Galil-Seiferas

Linear algorithm using constant extra space complexity. Preprocessing in O(m)O(m)-time. It performs 5n5n text character comparisons in the worst case.

Appeared in: