Computers and Technology
Computers and Technology, 10.03.2020 01:08, yoongnzl

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:30, alexandramendez0616
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, woodpeckerdeejpe8wvh
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, carter1809
Choose the answers that best complete each sentence. on average, are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
Do you know the correct answer?
This project will be three parts. Part I is to construct a Trie using a dictionary file provided. Pa...

Questions in other subjects:

Konu
English, 21.09.2019 15:20
Konu
Mathematics, 21.09.2019 15:20
Konu
English, 21.09.2019 15:20