Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need python code. PROBLEM 2 In Problem 1, you implemented the Movie management system. Now you have to re- implement the system by using

image text in transcribed

I need python code.

PROBLEM 2 In Problem 1, you implemented the Movie management system. Now you have to re- implement the system by using BST You will implement and test an application that acts as main-memory database containing information about movies. All the records with movie information will be stored in a Binary Search tree container class. The insertion of each movie record will be based on the movie title. For simplicity we will assume movie titles consisting of either one word, or multiple words separated by a dash - . For example: Platoon, Alien, Titanic.. The following diagram illustrates a general level organization of a movies database for these three movies, when inserted in that order Platoon right left Alien Right = None Left = None Titanic Right = None Left = None In reality, each node will not have simply the movie title, but a record that has the following information: 1. Movie Title 2. Cast (Actors will be stored in linked list (singly or doubly or circular up to you. You can use your previous linked list code) 3. Movie year of release 4. Duration of the movie (minutes) You will implement the following operations for the movie database application 1. Add movie - add a new movie record to the movie database. You cannot insert the movie which already exist in the list. 2. Delete movie deletes a movie record from the movie database. 3. Add actor - add an actor in given movie cast 4. Find movie - finds the information record for a movie 5. Find actor - Prints all movies in which actor has worked 6. Print movies in order - prints all the movies in the list sorted order. Bonus Points Saving and Restoring BST using a text file - Your program will read the data from an input file in order to create Movie BST and its actors' linked list. At the exit, your program will be able to save the data in the file

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 Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions