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

  Define research question for the orthogonal-coded regression

Write Section 3 of the DAA. Specify a research question for dummy-coded regression. Articulate a null hypothesis and alternative hypothesis for the overall.

  Find the distortions when a uniform quantizer is used

[Uniform Quantizer with Levels Set to the Midpoints] Find the distortions when a uniform quantizer is used to quantize a zero-mean, unitvariance Gaussian.

  Estimating a source code based project

There are various methods that may be used to determine activity estimates with respect to resources, costs, and durations. Choose at least three estimation.

  Describe techniques for developing prototypes

Building on your initial user interface (UI) design mock-up of the organization's program UI. Describe techniques for developing prototypes of user interfaces.

  Which sort of graphic is the right choice, vector or bitmap

When your boss or client hands you a job, how would you make the determination which type of graphic is the right choice, Vector or Bitmap, in your response, define what parameter you would use and what variable you would have to weigh in your dec..

  What are the triggering levels

What are the triggering levels (rising or falling edge) of INT0 - INT2 upon power-on reset? Write a PIC18F assembly language program to activate the triggering.

  Facilitate requirement elicitation, specification

What process or tools are you familiar with that facilitate requirements elicitation, specification and decomposition?

  What different instruction formats used for add instruction

What different instruction formats might be used for an ADD instruction, and how would they work?

  Describing the topic and recent developments

From the topics covered in the course to this point, pick one of the topics listed below, write a 4-page paper describing the topic and recent developments.

  What is managed and unmanaged code

ITAP1001 Software Development Fundamentals - What is managed and unmanaged code and What is the difference between "continue" and "break" statements

  Classify each team member into one of the four matrix areas

You have been recently promoted to lead a new division of Company XYZ. This company is known for its team-oriented atmosphere, and your boss has raved about.

  What datatypes can they work with

SQL uses relational and logical operators in the WHERE clause to restrict the rows returned in a query.

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