FIT3155: Advanced data structures and algorithms Assignment, MUM, Malaysia Write a program that implements a binary heap and binary search tree data structure to manage a list of job requests in a computer repair shop
University | Monash University Malaysia (MUM) |
Subject | FIT3155: Advanced data structures and algorithms |
Question 1: Computer repair Priority Queue System
Write a program that implements a binary heap and binary search tree data structure to manage a list of job requests in a computer repair shop.
The program shall fulfill the following requirements:
- Design a binary heap data structure to store a list of job requests. Each job request consists of request id, description, priority and status.
- Provide a menu that allows a user to perform the following operations until the option 4 (exit) is selected:
- Add a new job request
- Retrieve a job
- View job sumarry
- Exit
- If user selects option 1 (Add a new job request), the program shall add a new job request (0 value in status to represent new request) into the binary heap. Allow user to assign appropriate priority for the job (1-5. 1 for high and 5 for low).
- If user selects option 2(Retrieve a job request), the program shall retrieve the highest priority job from the binary heap and move it into a binary search tree (use request id as the key in binary search tree) and update the status to 1(close).
- If user selects option 3 (View job summary), the program shall display a list of jobs’ information (in tabular format) based ont the job status (0 or 1) entered by user.
- The program shall demonstrate a good OOP design, data validation and error handling
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Answer
Recent Solved Questions
- Sports Science Assignment, CU, Malaysia Dalam konteks ini, latihan bola segar telah dikaji untuk melihat sama ada ia boleh membantu prestasi fizikal dan kemahiran
- LEVEL 5: ABC Development Sdn. Bhd. is a main contractor appointed by Majlis Amanah Rakyat (MARA) for “Proposed Design: Site specific Project Management Plan (PMP), Report, CIDB, Malaysia
- Introduction to C Programming Assignment, UON, Malaysia Explain the essential facts, concepts, principles, strategies, and theories relating to Information Technology applications
- To describe the basic features of the technologies and their potential applications: Contruction Project Management Research Paper, Malaysia
- CUSTOMS MANAGEMENT AND CHALLENGES Assignment, UiTM, Malaysia Discuss and elaborate on the collection of indirect taxes and how the above objectives are being administered
- English Essay, APU, Malaysia The occurrence of violence and abuse against children is on the rise. Discuss the causes and effects
- SSCE2193: Engineering Statistics Assignment, UTM, Malaysia LajakLaku is a manufacturer that produces health supplement diet tablets called LajakKuruih. The company produces
- BBUI3103: Employment And Industrial Law Assignment, OUM, Malaysia Identify and discuss tests that are usually considered by the court in determining the employer-employee relationship
- FAR460: Accounting Financial and Reporting 2 Assignment, UTM, Malaysia Help Bhd has been involved in manufacturing and supplying gloves and related products. The company continues to record success
- CHE 433: Thermodynamics Assignment, UiTM, Malaysia Velocity is an intensive property of a system and One kilogram of water at a temperature of 225°C and 500 kPa has a volume of 0.078405 m3