algofinal

For example a accepts aabababaab abab and aaabbab but

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: , A accepts aabababaab, abab, and aaabbab, but rejects aababab, ababa, and ababbb. vii 5. 20 Compute the pre x function  for the pattern ababa when the alphebet is P = fa; bg. Use Knuth-Morris-Pratt algorithm to detect pattern P = ababa in string ababbababababa. Show all the necessary shifts. viii question 5, continued ix...
View Full Document

Ask a homework question - tutors are online