1.

Which of the following is the fastest algorithm in string matching field?(a) Boyer-Moore’s algorithm(b) String matching algorithm(c) Quick search algorithm(d) Linear search algorithmThe question was asked in a national level competition.Asked question is from String Matching in portion String Matching of Data Structures & Algorithms II

Answer»

Correct OPTION is (c) Quick search algorithm

To explain: Quick search algorithm is the fastest algorithm in STRING matching field whereas Linear search algorithm SEARCHES for an element in an ARRAY of elements.



Discussion

No Comment Found

Related InterviewSolutions