CS2413 Data Structures Problem - Priority Circular Queue

Assignment Help Computer Engineering
Reference no: EM132377205

Assignment: CS2413 Data Structures, Texas Tech University

Acknowledge your collaborators or source of solutions, if any. Submission through Blackboard is required. This exercise is for getting familiar with Queue.

Please be advised that test cases only need to provide the Correct Input and the Correct Output, and screenshots are not required in these cases.

Also, the 3 Text Files from Part 3 can be used to illustrate the testing of the program as a whole. Do all of the following. A subset of your solutions will be graded.

1. Implement a 3-levels Priority Circular Queue using arrays.

Let's remember that when arrays are used to implement a priority queue, then a separate queue for each priority number is maintained. Implement each queue as a circular queue. Every individual queue will have its own FRONT and REAR pointers.

• Each of the circular queues can hold up to 10 elements.

• The Data elements in the queue would be integers numbers.

• Provide essential functions to insert and remove elements from the priority queue.

• Provide basic functions that to check if the priority queue is Empty or Full.

• Provide an auxiliary function that displays the current status of the priority queue.

2. Simulate the traffic in the queue.

Use a random number generator to produce elements that would enter de queue. Use a random number between 100-999 to identify the element.

Use a Random number between 1 and 3 to denote the priority of the element. Where 1 is the highest priority and 3 is the lowest priority.

Once there are 6 elements in the queue, either 2 or 4 elements exit the queue, after this point for every 3 elements entering the queue 2 or 4 elements exit the queue. (Use a random number to decide if 2 or 4 elements exit the queue)

Display the state of the queue after the exit of the elements from the queue.

3. Save the output simulation behavior of the queue in a text file with the output of the program, showing the initial state and its current state after the exits.

The simulation stops when

• There is an Overflow condition

• There is an Underflow condition

• 20 elements have exited the queue

The following is a description of one of these output files.

• Initial State of the priority queue with 6 elements.

• The current state of the queue with 4 elements after elements A and B exited the queue.

• 3 New elements X, Y, Z, have entered the queue, and elements A, B have exited the queue.

• The current state of the queue with 7 elements.

• 3 New elements X, Y, Z, have entered the queue, and elements A, B have exited the queue.

• The current state of the queue with 8 elements.

• 3 New elements X, Y, Z, have entered the queue, and elements A, B have exited the queue.

• The current state of the queue with 9 elements.

Your compliance with the "PROGRAMMING STYLE GUIDELINE" mentioned in the LAB will affect your actual grade. All assignments will be checked for academic misconduct (cheating, plagiarism, collusion, falsifying academic records, misrepresenting facts, violations of published professional ethics/standards, and any act or attempted act designed to give unfair academic advantage to oneself or another student) defined by "OP 34.12: Grading Procedures, Including Academic Integrity" of TTU. Special software will be used to uncover for such attempts.

Reference no: EM132377205

Questions Cloud

Comments section of an employees performance : As a supervisor, give an example of a comment that you could include in the supervisor comments section of an employees performance review document
Customer service improvement process : List 4 guidelines for keeping accurate records of the Customer Service Improvement Process
Describe 3 ways that you can keep team members : Describe 3 ways that you can keep team members informed of the progress of the Customer Service Improvement Process
Explain role well-written introductory paragraph performs : Explain the role a well-written introductory paragraph performs. Explain the purpose of the concluding paragraph.
CS2413 Data Structures Problem - Priority Circular Queue : CS2413 Data Structures assignment help and solutions, Texas Tech University - essential functions to insert and remove elements
The maintenance of rigid company dress policy : Analyze ethical considerations associated with the maintenance of a rigid company dress policy.
Working for bounce fitness : Joseph just finished school and started working for Bounce Fitness a few days ago. Since working in the organisation, Joseph looks a bit lost with his new role
Part of a mentoring program for a staff member : What are 3 things you can provide as part of a mentoring program for a staff member
Critical thinking skills can include interpretation : Critical thinking skills can include interpretation, analysis, inference, evaluation, explanation, and self-regulation.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd