1.

What character shift tables does quick search algorithm use?(a) good-character shift tables(b) bad-character shift tables(c) next-character shift tables(d) both good and bad character shift tablesI have been asked this question in an online quiz.I'm obligated to ask this question of String Matching topic in chapter String Matching of Data Structures & Algorithms II

Answer» CORRECT choice is (b) BAD-CHARACTER shift TABLES

Easy explanation - Quick search algorithm uses only bad character shift tables and it is one of the reasons for its increased speed than Boyer-Moore’s algorithm.


Discussion

No Comment Found

Related InterviewSolutions