GatorTicketMaster is a Python-based ticket reservation system that efficiently manages seat reservations, waitlists, and priority-based assignments. The project utilizes red black tree, min heap and max heap data structures to manage seat reservations, waitlists, and user priorities efficiently.
Program Structure:
The GatorTicketMaster system has the following classes:
• Node: Represents a node in Red Black tree.
• RedBlackTree: Implements a Red Black tree for efficient storage and retrieval of reservations.
• MinHeap: The MinHeap class is an implementation of a binary min heap data structure.
• MaxHeap: The MaxHeap class implements a binary max heap data structure
• GatorTicketMaster: The main class that integrates all components and provides the core functionality
How to run?
To run the GatorTicketMaster program, follow these steps:
• Ensure you have Python installed on your system.
• Save the provided code in a file named gatorTicketMaster.py.
• Prepare an input file (e.g., input.txt) with the commands you want to execute.
• Open a terminal or command prompt.
• Navigate to the directory containing gatorTicketMaster.py and your input file.
• Run the program using the following command: python3 gatorTicketMaster.py input.txt
• Replace input.txt with the name of actual input file.
• The program will process the commands from the input file and generate an output file named input_output_file.txt