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
Recent Solved Questions
- ABXM1103: MAN, SOCIETY AND CULTURE Assignment, OUM, Malaysia The International Labour Organization (ILO) reports that more than 15 million children or nearly one in every 10 children
- English for Business Essay, TU, Malaysia Climate change is the biggest threat to global health in the 21st century. Some of these threats include more frequent and intense droughts
- Bachelor of Marketing with Honours Assignment, OUM, Malaysia Target Market Who are Starbucks Malaysia’s target customers and Describe the types of products from Starbucks Malaysia
- Network Analysis Assignment, CUSCT, Malaysia Figure 1 shows an electric circuit network. Using the proper tree in Figure 2, determine all the voltage and current for each edge
- PRJ 3036: Research Project 2 Research Paper, SU, Malaysia The research project is intended to provide you with the opportunity to explore at length and in-depth aspects of theory, knowledge, experience
- STA404: Statistics for Business and Social Sciences Assignment, UiTM, Malaysia There is an increasing trend in purchasing the laptop due to the pandemic Covid19
- BBF315/03: Risk Management Assignment, WOU, Malaysia You are currently working as an analyst at Financial Consulting Bhd. Your boss has instructed you to form an equity fund portfolio which consists
- LAW416: Business Law Assignment, UiTM, Malaysia Karim ordered 100 packets of gummy bears from Julie. He instructed Julie to pack 20 packets in 5 boxes to be sent
- JAVA Programming Level 1 Assignment, UNIKL, Malaysia The management of an airport thinks that the way in which the airport is operated means that incoming flights
- You are expected to conduct a presentation of the feasibility of the project based on the location: Project Management Assignment, TU, Malaysia