Loading
Home › Computer Science Help › spell checker
Status: Completed

spell checker

Date Posted: 18/05/2020
Category: Computer Science
Due Date: 20/05/2020
Instruction
Learning objectives: Use hash tables, a common data structure, to implement a programming problem Implement a spelling checker by using a hash table. Start by reading the starter code. Use the following steps: Your code should import this code from the textbook: https://algs4.cs.princeton.edu/code/edu/princeton/cs/algs4/SeparateChainingHashST.java.html (Links to an external site.) and use it as a library. Do not change this code. (The starter code already implements this.) In the initDictionary() method, write code that reads a file of words and creates a hash table of correctly spelled words. The file of words is provided for you in the GitHub repository. Write code in main() that repeatedly prompts the user to type a word and checks each word for spelling mistakes. If the word is spelled correctly (found in your hash table), it should print "no mistakes found". If the word is not found, it should list all words that are obtainable by applying any of the following rules exactly once: Add one character to the beginning Add one character to the end Remove one character from the beginning Remove one character from the end Exchange two adjacent characters There are two ways to implement part 3: Given an input word inputWord, loop over all words in the hash table (using the keys() method) and for each word dictionaryWord, check if you can go from inputWord to dictionaryWord using one of the five transformations. Given a word inputWord, generate a list stringList of all possible strings you can make by applying one of the five rules. Then, for each string s in stringList, look up s in the dictionary. Pick which way you think is better for this problem (in terms of number of comparisons). Implement it, and explain why you think it's better. Examples (add your own too): input word output algorithm no mistakes found! cate cater, cat og bog, cog, dog, fog, hog, jog, log, mog, nog, pog, sog, tog, go Starter code: In Eclipse: Right-click on the "Lab3" icon in the left sidebar. If using eclipse with git, you may need to first right-click on the "cis27" folder and then select Team, then Pull, before you can see the "Lab3" icon. Select "Build Path" from the pop-up menu, then select "Add Libraries..." from the second menu that pops up. Make sure "JRE System Library" is selected (highlighted). Click Next. Click Finish. Right-click on the "Part2" folder underneath the "Lab3" icon. In the menu that pops up, select "Build Path", then select "Use as source folder" from the second menu that pops up. To run the code, right-click on the "SpellChecker.java" icon in the sidebar and select "Run As", then "Java application" from the second menu that pops up. You can also go to the Run menu > "Run As" > "Java application". The code just prints out all the words in the dictionary. Change it so that it implements a spell checker as per the assignment.
Attached
No File uploaded yet.
Bidders
truewriter 6 years, 4 months ago
Rated 9.26 earned 20430.87 around 562 assignments.
Greetings buddy! I am a professional writer, trainer, programmer and editor with more than five years experience. Have my assurance that this assignment will be delivered EVEN BEFORE THE DUE TIME.NO PLAGIARISM AT ALL. I follow instructions as outlined. I don’t disappoint . You can trust me to deliver a well-researched and scholarly assignment to you.
$350.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Vinniax 6 years, 4 months ago
Rated 9.34 earned 13276.58 around 356 assignments.
I am a guru in computer science and i promise you an A in this work, please award me this bid now.
$250.00
  • Ok let me start.
    Vinniax | May 18, 2020, 08:58 AM
  • Kindly release the payment, i just uploaded the program.
    Vinniax | May 19, 2020, 07:31 AM
  • hi, sorry I forgot to include some questions would you mind answering them?
    User_28808 | May 19, 2020, 08:01 AM
  • explain any differences between your design document and your final code. If you had to make changes to your approach, why? How did you decide on a new solution?
    User_28808 | May 19, 2020, 08:02 AM
  • I will answer them.
    Vinniax | May 19, 2020, 08:03 AM
  • you can release the payment for this one that I have uploaded , i will send you the files also
    Vinniax | May 19, 2020, 08:03 AM
  • (this one first) Describe how you will write the code to create the table of correctly spelled words. Describe how, given a word, you will use the table to check for spelling mistakes as per the five rules given in the assignment. The assignment gives you two choices for how to implement spell checking: either loop over all words in the hash table, or loop over all strings that can be obtained by applying one of the five rules to the input string. Which one do you think is better? What do you expect to be challenging about this problem?
    User_28808 | May 19, 2020, 08:03 AM
  • I have uploaded the additional stuffs that you wanted, please release the payment so that we can be even.
    Vinniax | May 20, 2020, 04:43 AM
  • Hello there, please release the payment
    Vinniax | May 20, 2020, 06:07 AM
  • Please rate me 10/10 and mention that i completed your assignment in computer science programming
    Vinniax | May 20, 2020, 08:04 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}