Examveda

What is the auxiliary space complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?

A. O(n + m)

B. O(m)

C. O(n)

D. O(m * n)

Answer: Option B


This Question Belongs to Data Structure >> Searching Algorithms

Join The Discussion

Related Questions on Searching Algorithms