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


    âš¡ Month End Offer - Flat 52% Off On All Courses! Enroll Now âš¡
    00:00:00 AM Left

    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