subject

This project will be three parts. Part I is to construct a Trie using a dictionary file provided. Part II is to implement a command-line search auto complete interface. Please note that you need to implement your own version of Trie. Part III is to implement a recommendation search. You cannot use existing C++ library Trie or use an implementation online. Points will be taken off otherwise.

Part I (45 points):

Dictionary. txt is provided to you to construct the Trie. Each line contains a valid search query. Your task is to insert these queries into your Trie. Implement trie classes for part 1.

Part II (45 points):

Using the Trie class completed in Part I, create a C++ program that takes an user input and output auto completion options. The interface should be similar to the following:

$> Please type search queries:

$> binary sea

$> Your options are:

$> binary search

$> binary search tree

$> binary search tree java

Implement a search. cpp file to complete part II

Part III (10 points):

Implement a recommendation search. When you search a term that is not in the Trie, recommend the top 3 most similar entries in the Trie:

$> Please type search queries:

$> cakr

$> Do you mean:

$> cake

$> cat

$> crack

*I was unable to attach the dictionary. txt file, but it looks similar to what I have pasted below:

aaa
aaas
aactive
aadvantage
aaker
aap
aapg
aaron
aarp
aas
aau
ab1890
ab1x
ab31x
aba
abacus
abag
abalone
abandon
abandoned
abandoning
abandonment
abate
abated
abb
abbott
abbreviated
abbreviation
abby
abc
abcm
abdullah

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
You know the right answer?
This project will be three parts. Part I is to construct a Trie using a dictionary file provided. Pa...
Questions
question
Mathematics, 29.12.2019 13:31
Questions on the website: 13722363