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
- Write SQL queries to answer the following questions. Use the information given in each table: Database Assignment, IIU, Malaysia
- Mathematics Assignment, MMU, Malaysia Solve the following pair of simultaneous differential equations
- Business Administration Assignment, UOS, Malaysia A critical understanding of operational and marketing theories, concepts and strategies and how these impact value
- CHE4161: Engineer in Society Essay, MUM, Malaysia You are appointed as the project manager for a construction project You were informed that your team engineer
- Advanced Environmental Impact Assignment, UU, Malaysia Prepare a possible short EIA report for the project
- MPU3193: Explain with examples how metaphysical concepts influence our beliefs about the relationship between man and God in religion: Philosophy and Current Issues Assignment 2, WOU, Malaysia
- SEMM3023: Applied numerical method Report, UMT, Malaysia The determination of the fundamental natural frequency for cantilever beams is crucial in many engineering applications
- Educational Leadership Assignment, UON, Malaysia Distributed leadership, or the expansion of leadership roles in schools, beyond those in formal leadership or administrative posts
- LAW416: Business Law Assignment, UiTM, Malaysia Lena a housewife, visits Tenggara Bhd, a company that sells various kinds of electrical goods for household purposes
- Accounting Assignment, UM, Malaysia Mantera Bhd was incorporated in 2002 and the company’s core businesses are manufacturing, importing, exporting, distributing