📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    KMP improves naive string matching

    by:
    A Using hashing Correct Answer Incorrect Answer
    B Avoiding re-checking characters with prefix function Correct Answer Incorrect Answer
    C Parallel search Correct Answer Incorrect Answer
    D Sorting substrings Correct Answer Incorrect Answer
    E Binary search Correct Answer Incorrect Answer

    Solution

    KMP uses prefix function (failure function) to skip unnecessary comparisons.

    Practice Next
    ask-question