Vidyalelo
Data Structure · Q66

Searching Algorithms

Programming · Data Structure · question 66

Q66

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)
Answer
C.
O(n)
D.
O(m * n)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board