a) O(n + m)
b) O(m)
c) O(n)
d) O(m * n)
What is the auxiliary space complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the auxiliary space complexity of Z algorithm for pattern searching (m = length of text, n = length of pattern)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!