Misspelling of a word in w

Assignment Help Business Management
Reference no: EM132341155

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

Questions Cloud

Dollars on economic aid to other countries : Why does the US spend billions of dollars on economic aid to other countries?
How cryptography concepts and operations security : How cryptography concepts and operations security used at your work
Why is it important or not important that the us : Why is it important or not important that the US has a strong manufacturing base?
Passage of the us affordable health care act : What were the major reasons for the passage of the US Affordable Health Care Act (Obama Care)? What are the arguments against the Health Care Act?
Misspelling of a word in w : Your program should be able to handle all the common ways that s might be a misspelling of a word in W, including
Draw an adjacency matrix for g : Suppose that in a group of 5 cities: A, B, C, D, and E, the following pairs of locations are connected with each other with direct flight.
Report on the current project communication plan : PMIT Project Management - Case Study Assignment - Research Study, VIT, Australia. Report your assessment of the current project communication plan
Information technology and operations technology : The convergence of information technology and operations technology, offering the potential for tremendous improvements in efficiency, product quality
Disadvantages of working with apis : What are the advantages and disadvantages of working with APIs when developing applications?

Reviews

Write a Review

Business Management Questions & Answers

  Discuss issue confronting twenty first century businesses

Identify and discuss an issue confronting 21st century businesses today, and explain how you would analyze and resolve the issue.

  Recruitment strategy

Recruitment Strategy - Show the costs and benefits (meeting or exceeding quotas, turnover rates of recruits, success of the recruits on the job,

  Home safety and risk management analysis

Home safety and risk management analysis( real estate housing

  Discuss the merits of one or both given cases

Trademark Protection: Apple Corps vs. Apple Computer. Briefly research and discuss the merits of one or both cases. You may also share alternative examples.

  Marginal cost of another case

The average total cost of operating a surgical room is $700 per case if the volume is 100 cases, and $690 per case if the volume is 110 cases. What is total cost at each of these two volumes? What is the marginal cost of another case within this r..

  Verbal and nonverbal communication play

In this week’s Discussion, you will explore how verbal and nonverbal communications are used in face-to-face environments.

  Business research methodology

A tax consultant wonders whether he should be more selective about the class of clients he serves so as to maximize his income.

  Does your organization support these efforts

Discuss the following "Does Rosabeth Moss Kante's article resonate in your experience? How, give examples?

  Perform a current swot analysis of the alternative model

Perform a current SWOT analysis of the alternative model you selected and explain why you believe it to be a sustainable model for the future

  Definition of organizational behavior

This week, our text discusses the definition of organizational behavior, and in particular, its applied focus. Our lesson focuses on high-performance organizations (HPOs).

  Importance of time value of money concepts

Need your help to understand the concept? 1. What is the importance of time value of money concepts in company investment decisions?

  Evaluate the prospects for peace in the persian gulf region

Assess the lessons of three Gulf Wars. Discuss which lessons are the most relevant today. Explain why. Evaluate the prospects for peace in the Persian Gulf region.

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