Answered step by step
Verified Expert Solution
Link Copied!

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 cm
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,242,23.2,02/02/2022,city1
Whitefish, 270,23.6,22/02/2022, city2
Roach,40,12.9,15/09/2022,city 3
Parkki,300,26.0,15/09/2022,cify4
Whitefish,270,24.1,15/09/2022;city 3
Parkki,300,26.5,18/09/2022,cify5
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

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_2

Step: 3

blur-text-image_3

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions