Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment aims to help you practice binary search tree ADT, in particular AVL Tree. You will write a program that can be used to
This assignment aims to help you practice binary search tree ADT, in particular AVL Tree. You will
write a program that can be used to analyze the collected fish data. You will use this application
to index the fish.
Requirements:
In this assignment, you are given a list of fishes in an external text file called "fishes.txt In this text
file, you can find several fishes.
This file includes the following information:
Name: the name of the fish
Weight: weight of the fish in grams
Length: length of the fish in
Date: the fishing date
City: the fishing city
And sample data is as follows where each part is separated by a character:
Name, Weight,Date,City
Beam,city
Whitefish, city
Roach,city
Parkki,cify
Whitefish,;city
Parkki,cify
Your task here is to process this file and generate an AVL tree based on the weight. If there is
more than one fish with the same weight, they should then be stored together in the same node
as shown below.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started