Given input string = "ABCDABCATRYCARCABCSRT" and pattern string = "CAT". Find the first index of the pattern match using Quick search algorithm.
2
6
11
14
10 practice sets · Page 1 of 1
Given input string = "ABCDABCATRYCARCABCSRT" and pattern string = "CAT". Find the first index of the pattern match using Quick search algorithm.
2
6
11
14
The searching phase in Quick search algorithm has good practical behaviour.
True
False
What is the worst case running time in the searching phase of Boyer-Moore's algorithm?
O(n)
O(log n)
O(m+n)
O(mn)
What character shift tables does Boyer-Moore's search algorithm use?
Good-character shift tables
Bad-character shift tables
Next-character shift tables
Both good and bad character shift tables
Quick search algorithm starts searching from the rightmost character to the left.
True
False
What is the space complexity of the Quick search algorithm?
O(n)
O(log n)
O(m+n)
O(mn)
What character shift tables does the Quick search algorithm use?
Good-character shift tables
Bad-character shift tables
Next-character shift tables
Both good and bad character shift tables
What is the time complexity of the Quick search algorithm?
O(n)
O(log n)
O(m+n)
O(mn)
Which of the following algorithms formed the basis for the Quick search algorithm?
Boyer-Moore's algorithm
Parallel string matching algorithm
Binary search algorithm
Linear search algorithm
Which of the following is the fastest algorithm in the string matching field?
Boyer-Moore's algorithm
String matching algorithm
Quick search algorithm
Linear search algorithm