Question: You have been provided with the following string matching algorithms: Boyer _ Moore.py , Brute _ force.py , KMP _ matcher.py , and Rabin _
You have been provided with the following string matching algorithms: BoyerMoore.py Bruteforce.py KMPmatcher.py and RabinKarp.py Using any of these algorithms, I want you to find the words that have:
Longest Continual Substring of:
Vowels
Consonants
Longest Continual Prefix of:
Vowels
Consonants
Longest Continual Suffix of:
Vowels
Consonants
Example: Hello "World", "Face","Asthma", "Spring", "Because", "Thorough", "Sequoia" In this list of strings, "Sequoia" has the longest substring of consecutive vowels. "Asthma" has the longest substring of consecutive consonants. "Asthma" Also has the
longest prefix of consecutive vowels. "Spring" has the longest prefix of consecutive consonants. "World" has the longest suffix of consecutive consonants and "Sequoia" has the longest suffix of consecutive vowels. Your word file is going to be a long excerpt from
"Lorem Ipsum" text found in loreipsum.txt If there are multiple words that tie in any criteria, return ALL words that tie. You can assume that the only characters in the file will be standard English letters, no numbers, special characters, or characters with diacritic marks.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
