Spell checker that stores a set of words

Assignment Help Business Management
Reference no: EM132331608

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: EM132331608

Questions Cloud

Prepare a cash budget for may and june 2019 : Brockbank Builders Ltd is preparing a cash budget for May and June of 2019. Past records reveal that 20% of all credit sales are collected.
How the disease you chose affects the various body systems : You are required to write a critical analysis of the disease of your choice. explain how the disease you chose affects the various body systems where relevant.
Discuss the findings from the data set : Present findings and recommendations developed whilst completing the analysis of the data. The presentation should include a visual component
Compute the present value of the tax shield resulting : Rush Corporation plans to acquire production equipment for $612,500 that will be depreciated for tax purposes as follows: year 1, $122,500;
Spell checker that stores a set of words : 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 respe
Calculate the accounting income for the total over four year : Lucas Company is considering investing in a new machine. The machine costs $10,000 and has an economic life of four years.
The oklahoma vs oklahoma state to score points : The Oklahoma vs Oklahoma State to score points and the problem is threatening to derail their playoff hopes. The Oklahoma vs Oklahoma State will try to unlock
Discuss the role that pension funds play in company : Discuss the role that pension funds play in company pension plans. What benefits accrue to companies who elect to use pension funds?
Mention the seven layers of the osi stack : a. Mention the seven layers of the OSI stack, and describe the basic function of each layer.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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