Implement the spell checker and the hash table

Assignment Help Computer Engineering
Reference no: EM133218584

Problem Description-C++

Write 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".

Create classes SpellChecker and HashTable to implement the spell checker and the hash table, respectively. Create a UML class diagram that describes your class design.

Reference no: EM133218584

Questions Cloud

What would be united states department of agriculture animal : In terms of physical resources, what would be the United States Department of Agriculture's Animal and Plant Health Inspection Service's most crucial asset.
Prepare a public service announcement : Prepare a public service announcement Powerpoint targeting senior citizens and the dangers of phishing and smishing attacks. The video should include the social
What person is failed to meet their responsibilities : Research & Summaries Essay - Identify what person or agency is failed to meet their responsibilities in assuring safety for those who died
Design your own database system for a grocery store : Describe every stage of design, from requirement analysis, business rule generation, big table creation which results in the overall table for 1st NF, and up
Implement the spell checker and the hash table : Implement the spell checker and the hash table, respectively. Create a UML class diagram that describes your class design.
What are the final balances for each account : What are the final balances for each account by the end of 09/2018? And What are the total final balances for all account by the end of 09/2018?
Identify computers that may have been used for the attack : ISSC630 - Advanced Cybercrime Analysis Assignment - Cyber Analysis Essay, American Military University - identify computers that may have been used for attack
Process results from lower layers : Process these results from lower layers and pass the appropriate information to upper layers. Assess the security disadvantage of this layered approach.
What was the cybercrime discussed in the article : What was the cybercrime discussed in the article? What was the impact of this particular cybercrime and Where in the network topology could firewalls

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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