Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Indexing Websites! This assignment aims to help you practice binary search tree ADT and in particular AVL Tree. You will write a program that creates

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Indexing Websites! This assignment aims to help you practice binary search tree ADT and in particular AVL Tree. You will write a program that creates an index of a given list of the top popular websites and their l addresses. Requirements: In this assignment, you are given a text file that includes the list of the top popular websites and their IP addresses. When you typically request a website from your browser by typing in a URLI that URL is converted to an IP address2 that is used to retrieve that page from the given URL. In this assignment, you will process this external file with URLs and lP addresses, and then you will create an index of those pages. The attached file includes the list of IP addresses as follows: google.com. 2 16.58.219. 206 youtube.com 172. 217.4.206 facebook.com 31. 13.69.228 baidu .com 123. 125.11 4.1 44 yahoo.com 206.190. 36.45 amazon.com 54 239.1 17.6 Wikipedia.org 208 80.15 4.224 gg. com 61 135.157. 156 google. co. in 216.58.219 195 As you can see here, the first page is the main Google page and the last page is the Google page in Italy (because of the extension "co.in n the IP address) Your task here is to process this file, and generate an AVL tree that indexes the list of pages and their IP addresses. However, in this file, when you process the page URLs, you need to consider that google.com and google.co.in are both belong to Google. For this, you need to just retrieve the name of the page which is the one until the first dot in the URL. For example, once you insert the 9 entries given above you should have the following AVL tree

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

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions