String Matching on Data Structure and Algorithms related Questions and Answers - Page 2

Question 11 : The searching phase in quick search algorithm has good practical behaviour.
1. true
2. false
3.
4.
View Answer   Discuss with Members

Question 12 : If the expected number of valid shifts is small and modulus is larger than the length of pattern what is the matching time of Rabin Karp Algorithm?
1. Theta(m)
2. Big-Oh(n+m)
3. Theta(n-m)
4. Big-Oh(n)
View Answer   Discuss with Members

Question 13 : Rabin Karp Algorithm makes use of elementary number theoretic notions.
1. True
2. False
3.
4.
View Answer   Discuss with Members

Question 15 : What is the basic formula applied in Rabin Karp Algorithm to get the computation time as Theta(m)?
1. Halving rule
2. Horner's rule
3. Summation lemma
4. Cancellation lemma
View Answer   Discuss with Members

Question 16 : Which of the following is the fastest algorithm in string matching field?
1. Boyer-Moore's algorithm
2. String matching algorithm
3. Quick search algorithm
4. Linear search algorithm
View Answer   Discuss with Members

Question 17 : What is the space complexity of quick search algorithm?
1. O(n)
2. O(log n)
3. O(m+n)
4. O(mn)
View Answer   Discuss with Members

Question 19 : Which of the following algorithms formed the basis for the Quick search algorithm?
1. Boyer-Moore's algorithm
2. Parallel string matching algorithm
3. Binary Search algorithm
4. Linear Search algorithm
View Answer   Discuss with Members

Question 20 : What is the pre-processing time of Rabin and Karp Algorithm?
1. Theta(m2)
2. Theta(mlogn)
3. Theta(m)
4. Big-Oh(n)
View Answer   Discuss with Members


View 11 - 20 of 20 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter