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
- Comparative Ethics Assignment, AeU, Malaysia Moral ethics are considered relative, which means it is strongly related to culture and circumstances
- Capital Markets and Global Perspective Case Study, UOL, Malaysia Roy K., chief financial officer (CFO) of Flashing Sports Inc., was thinking about the bright prospects for his company’s fast-growing outdoor
- Strategic Management Assignment, ASB, Malaysia You are required to introduce your selected automobile company and highlight the key issues that the company is currently facing
- PGBM01: Relying only on accounting figures from Income Statement and Balance: Financial Management and Control Assignment, UOS, Malaysia
- MPU2163: Pengajian Malaysia Essay, IIU, Malaysia Mencapai keputusan yang cemerlang dalam pelajaran adalah pencapaian yang diidam-idamkan oleh semua yang bergelar pelajar
- BBCA1033 Introduction to Accounting Assignment, CUM, Malaysia
- TCP1101: In this assignment, you will implement an assembly language interpreter that will run assembly language: Programming Fundamentals Assignment, UM, Malaysia
- HRM3183: Omega, Inc., is a small manufacturing company whose sales success or failure rests in the hands: Performance Management Case Study, UPTM, Malaysia
- The teaching profession is undeniably challenging. A teacher’s role extends beyond imparting knowledge: Foundations Of Educations Assignment, UNM, Malaysia
- FIT1043: Introduction to data science Assignment, MUM, Malaysia: This assignment has to be done using the Python programming language in the Jupyter Notebook environment