Implement the spell checker and the hash table

Assignment Help Basic Computer Science
Reference no: EM132336799

Question

A spell checker that stores a set of words, W, in a hash table and implements a function, spellCheck(s), which performs a spell check on the string s with respect to the set of words, W.

If s is in W, then the call to spellCheck(s) returns an iterable collection that contains only s, because it is assumed to be spelled correctly in this case. Otherwise, if s is not in W, then the call to spellCheck(s) returns a list of every word in W that could be a correct spelling of s.

Your program should be able to handle all the common ways that s might be a misspelling of a word in W, including

  • swapping adjacent characters in a word;
  • inserting a single character in between two adjacent characters in a word;
  • deleting a single character from a word; and 
  • replacing a character in a word with another character. 

The input to your program will consist of the name of a text file, and strings of characters manually entered by the user. The text file will contain the set of words, W, one word per line, and should be read in the program when the program starts. The strings of characters input by the user will be used to test the hash table and the spellCheck function. The program will keep running the tests until the user enters the string "quit".

Using classes SpellChecker and HashTable to implement the spell checker and the hash table, respectively

Using UML class diagram that describes your class design.

Reference no: EM132336799

Questions Cloud

Architecture models of health information exchange : Discuss the advantages and disadvantages of each and the role data ownership plays in each model. Your initial post should include credible/peer-review APA
Digital communication applications using matlab : Understand the importance of multiuser resource allocation techniques employed in the uplink of modern digital communication networks using wireless medium
Discuss the relationship between data and knowledge : Discuss the relationship between data, information, and knowledge. Support your discussion with at least 3 academically reviewed articles.
Identify the name of the wizard : Choose a design wizard; write observations below as you work through the process of using it to prepare for the initial post.
Implement the spell checker and the hash table : Using classes SpellChecker and HashTable to implement the spell checker and the hash table, respectively
Translate the pseudocode in the text into java : You should be able to compile the code without error and run it with correct results.
Discuss how genetic engineering may impact field of nursing : Discuss how genetic engineering may impact the field of Nursing. Discuss how genetic engineering may impact the protocol of care within the field of Nursing.
Discuss the different types of muscle fibers : Did your research discuss the different types of muscle fibers that develop with different types of training and why this is so?
Write on Neonatal Mortality for India and USA : Select ONE health condition from list below and compare disparities in health outcomes. Write on Neonatal Mortality for India and USA

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd