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
- SHAS 3368: Islamic Law of Succession Assignment, IIUM, Malaysia
- ECE2131: Electrical circuits Assignment, MUM, Malaysia Electrical Circuits lab is to expose the students to electrical circuits and give them the experimental skills of lab experiments
- ACC30305: Principles of Accounting Assignment, TU, Malaysia Mr Peter, a sole trader, started his frozen food business on 1st January 2021 under the name of Peter Frozen Enterprise
- CCS20903: Client Server Computing Assignment, MSU, Malaysia Create a complete web application using Java Servlet and Java Server Pages technologies. Create a Java web application
- CT119-3-3 Assignment Asia Pacific University of Technology & Innovation : Vulnerability Assessment & Penetration Testing Individual Assignment
- MPU2163: Pengajian Malaysia Essay, IIU, Malaysia Mencapai keputusan yang cemerlang dalam pelajaran adalah pencapaian yang diidam-idamkan oleh semua yang bergelar pelajar
- PGBM150: Innovation Entrepreneurship & Technology Transfer Report, SU, Malaysia The assessment has been specifically designed to accommodate the students varying commercial knowledge and understanding of module content
- FIN30016: Financial Accounting Report, SUT, Malaysia The size effect/premium in stock returns is the phenomenon that small-cap stocks on average outperform large-cap stocks over time
- ACC4304: Auditing Essay, UH, Malaysia Write an essay that critically evaluates the impact of an accounting scandal on auditor independence and audit quality
- MEE3383: Advanced Power System Analysis Design Assignment, UCD, Malaysia From the power flow standpoint, propose a solution to make sure the system is operating within acceptable voltage limits