answersLogoWhite

0


Best Answer

8798797

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an algorithm to implement any three operation of a queue?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a Java program to implement weighted queue using circular doubly linked list?

Add weights to the elements of the queue and use an algorithm to sort the queue every time an element is added.


Algorithm to implement Multiple queue in single dimensional array?

algorithm on multiple queues in a single dimensional array


What is queue algorithm?

|


Queue ADT Using Array?

implement the queue ADT using an array


How do you implement a FIFO structure?

FIFO is a first-in, first out structure. In other words, it is a queue. The most efficient way to implement a queue is with a circular array.


How many stacks needs to implement queue?

One.


Minimum number of queues needed to implement the priority queue?

Separated queue for every possible priority value.


Why an operation to check queue overflow is not implemented on linked queue?

In linked queue we're dynamically allocating the memory and there's no fixed memory limit in Linked Queue. That's why there's no operation for overflow. I guess It's the correct reason


What is most appropriate data structure to implement priority queue?

heap


What is the queue algorithm?

Usually it's modelled by the function (alpha)e^(-alpha *x).


Is it possible to implement stack and queues using linkes list?

Yes it is possible to implement stack and queue using linked list


Explain with an example first come first serve scheduling algorithm?

By far the simplest CPU-scheduling algorithm is the first-come, first-served (FCFS) scheduling algorithm. With this scheme, the process that requests the CPU first is allocated the CPU first. The implementation of the FCFS policy is easily managed with a FIFO queue. When a process enters the ready queue, its PCB is linked onto the tail of the queue. When the CPU is free, it is allocated to the process at the head of the queue. The running process is then removed from the queue. The code for FCFS scheduling is simple to write and understand. The average waiting time under the FCFS policy, however, is often quite long. Consider the following set of processes that arrive at time 0, with the length of the CPU-burst time given in milliseconds: