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
- Educational Leadership and Management Assignment, UON, Malaysia Relationships Between Supervision and Teachers’ Performance and Attitude in Secondary Schools in Malaysia
- BFW3121: Investments and Portfolio Management Assignment, MUM, Malaysia The Malaysian stock market is a key economic indicator of the country’s overall economic health
- Information Marketing Assignment, TU, Malaysia An info product is any product that can be digitally created, sold, and transferred to your customer
- LAW523 Finance Law Essay, CSU, Malaysia Lisbon was charged with murder under section 302 of the Penal Code for killing 16 years old student identified as Paris
- Ernest Shackleton’s Leadership & Gig Economy’s Impact
- STA404: Statistics for Business and Social Sciences Assignment, UiTM, Malaysia The depression scores of 25 patients were recorded before and after they had undergone therapy
- Accounting Case Study, UM, Malaysia
- BFW3121: Investments and portfolio management Coursework, MUM, Malaysia The table below depict the expected return CCC Berhad and XXX Berhad for April and May
- SKMM2413: Thermodynamics Assignment, UMT, Malaysia Choose a value for the polytropic exponent between 1.2-1.6. Using Microsoft Excel, construct the process
- 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