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
- Applied Calculus Assignment, SU, Malaysia Jubahsauk produces two new designs of baju kurung, A and B. Through market research and survey, the company determines
- BBCA1033 Introduction to Accounting Assignment, CUM, Malaysia
- GSGM7234 Adopting AI in Human Resource Management: Opportunities, Challenges, and Strategies
- MHRD510: Global Human Resource Management Assignment, HU, Malaysia As firms increase their levels of international activity, their organizational structures and Human Resource Management
- PBS3233: International Business Assignment, KPTM, Malaysia The economic system in the world refers to the way in which countries organize their economies to allocate
- BSL305: Company Law Assignment, MU, Malaysia In order to obtain the funds necessary to expand its business, Capital Ltd will undertake a $12M capital raising
- CSC408: Information System and Management Case Study, UiTM, Malaysia Manufacturers are experiencing a turbulent global environment that embodies challenges, opportunities, and uncertainties
- Semantics of Malay Essay, UM, Malaysia Analisis Peribahasa Peribahasa merupakan bahasa kiasan yang kerap digunakan untuk menyampaikan mesej
- TAX467: Statutory Business Income of Sinar Indah Shop for the year assessment 2023: Taxation Assignment, UiTM, Malaysia
- Business Research Method Assignment, USM, Malaysia It begins with Data Screening & Cleaning. Next, the Profile of Respondents will be presented followed by the Reliability