Advertisement
akosiraff

Download SpellChecker JAVA Answer

Jun 11th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/spellchecker/
  3. In this assignment, you will write two classes to provide objects that support the SpellChecker program. This program suggests spelling corrections to English words entered from the keyboard. Words entered by the user of the program will be compared to a list of over 105,000 words supplied in a data file (wordsEn.txt ). If an entered word is not found in the word list, you provide as alternative spellings, at most five words from the word list that have:
  4. 1 The same length as the entered word, and
  5. 2 The smallest Hamming distance from the entered word
  6. Hamming Distance
  7. The Hamming distance between two strings of equal length is the number of positions in the strings at which the corresponding characters are different. For example, the strings “ample” and “apple” have a Hamming distance of 1, since they only differ in the 2nd character. The words “apfel” and “apple” have a Hamming distance of 3, since they differ in the 3rd, 4th and 5th characters.
  8. Assumptions
  9. You may assume the following:
  10. 1 When there are multiple words with the same minimum Hamming distance from the entered word, you should report only the first 5 (alphabetically speaking). You must report all words that are at the same distance, up to 5; words with a longer distance will not be reported.
  11. 2 The words in the data file are in alphabetic order.
  12. 3 All words are lower case.
  13. What your classes must do
  14. You are to write two classes, HammingList and HammingCandidate.
  15. Download: https://solutionzip.com/downloads/spellchecker/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement