Cancelado

Hashing Application

Analyzing Hashing

Here you will experiment with the performance of linear probing hash tables to see if it matches the

analysis given by the book. Implement linear probing and then run tests on the average number of

probes required at various load factors using randomized input in order to obtain a graph like the one in

Figure 5.12. Compare the values from this simulation to the closed form solution in the book/slides. You

should use a fixed table size of 1009 (which is prime), do not rehash.

For this assignment the results and your analysis are important. You will write a small 1-2 page report

describing how you designed your experiment, a graph plotting the number of probes against the load

factor, and a brief conclusion on how it compares to the book’s plot.

Hashing Application

Implement a spell checker by using the hash table with quadratic probing. Given a document your

program should output all of the misspelled words. For each misspelled word you should also provide a

list of candidate corrections from the dictionary that can be formed by applying one of the following

rules to the misspelled word:

a) Adding one character in each possible position

b) Removing one character from the word

c) Swapping adjacent characters in the word

Your program should run as follows:

spellcheck

You will be provided with a small document named [url removed, login to view] and a dictionary file with

approximately 100k words named wordsEn.txt. There is also a file named [url removed, login to view] that

includes six misspelled words in [url removed, login to view] that your program should be able to correct.

Note that there may be other words in the document that are not in the dictionary due to the limited

size and scope of the dictionary. You do not have to correct those misspellings.

Habilidades: Programação C++

Ver mais: linear probing hashing, hashing, which is not a prime number, table checker, scope programming, scope application form, programming hash, programming graph, programming dictionary, prime tests, prime number tests, prime number one, prime number of 2, prime number factors, prime number factor, prime number 2, prime number 1, plotting a graph in c, one prime number, one is not a prime number, one a prime number, number of prime factors of n, not a prime number list, linear programming graph, is the number one prime

Acerca do Empregador:
( 5 comentários ) New York, United States

ID do Projeto: #5101487

1 freelancer está ofertando em média $30 para este trabalho

vano101

Hello. I am experiences with things you have described. I am able to deliver completed work in short time.

$30 USD em 1 dia
(124 Comentários)
5.7