Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 : Program Create an application as described below to store and retrieve data using the AVL binary search tree data structure. Write an

Part 1: Program
Create an application as described below to store and retrieve data using the AVL binary search
tree data structure.
Write an application GenericsKbAVLApp to read in the attached text file (GenericsKB.txt)
and store the data items within an AVL Tree. Each data item consists of a term (which should
be used as the key - assume that there won't be duplicate keys in the dataset), sentence and
confidence score.
After loading the dataset, a second file (GenericsKB-queries.txt) should be read in. This file
consists of a list of items (one item per line) only. The application should perform a search for
each of the query items (one at a time). If the item (e.g. "tree") is found in the AVL tree, the data
item should be printed out (e.g. "tree: Trees remove carbon dioxide from the atmosphere.
(1.0)"). If there is no match, an appropriate message should be printed out (e.g. "Term not
found: tree").
Your AVL Tree implementation can be created from scratch or re-used from anywhere. You
may use the sample code provided. You may NOT replace the AVL Tree with a different data
structure. Use output redirection in Unix to save the output of each run to a file.
Test that your application can load the dataset correctly, and manually construct a query file
with 10 queries to test that the application can handle queries with both terms in the dataset and
terms not in the dataset correctly.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago