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
- FINAL ASSESSMENT SEMESTER III SESI Universiti Teknologi Malaysia : PREVENTING ACCIDENT AT WORKPLACE
- UNGS2060: Malay Virtues Heritage & Malaysian Society Research Paper, IIUM, Malaysia Discuss the circumstances that led to the spread of Islam in the Nusantara
- DBM5024 Business Finance Assignment, MMU, Malaysia King Bakery is evaluating two different projects to expand its business The first project, Project Nutmeg has an initial cost of RM12,000
- LC1204: Non-verbal Communication Assignment, UTB, Malaysia Identify the non-verbal cues in a particular context/setting e.g., classroom setting or family gathering, or official event
- ENERGY OPTIMISATION AND ECONOMICS Report, SU, Malaysia Evaluate the minimum fresh usage and minimum terminal losses of identified compound by using the mass integration approach
- Diploma in Land Survey Assignment, UTM, Malaysia Calculate the volumes of cut and fill contained between consecutive cross-sections from CS10 and CS15
- DPJ5531: Programming in Java Assignment, HWU, Malaysia Propose your own title and develop one Java application based
- Digital Screens Essay, OUM, Malaysia Describe and explain the main features that distinguish digital screen media from earlier types of screen production
- LEI2043: CURRENT ISSUES IN LAW ENFORCEMENT Assignment, SUC, Malaysia Based on the above article, kindly explain and elaborate what is the extent of discretionary powers of a police officer
- Prevention and Detection of Corruption and Procurement Fraud Assignment, LBS, Malaysia You have been hired as a Fraud examiner by Polaris Co to investigate Financial statement fraud in their organization