The Gateway to Computer Science Excellence
For all GATE CSE Questions
Toggle navigation
Facebook Login
or
Email or Username
Password
Remember
Login
Register

I forgot my password
Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Prev
Blogs
New Blog
Exams
Recent questions tagged priorityqueue
+1
vote
1
answer
1
NTA NET DEC 2019 (insert and extract min)
What is the worst case time of insert and extract min in an implementation of a priority queue using an unsorted array? Assume that all insertions can be accommodated 1) θ(1) ,θ(n) 2) θ(n) ,θ(1) 3) θ(1) ,θ(1) 4) θ(n) ,θ(n)
asked
Dec 22, 2019
in
Algorithms
by
Sanjay Sharma
Boss
(
49.3k
points)

55
views
priorityqueue
0
votes
0
answers
2
Cormen Edition 3 Exercise 6.5 Question 7 (Page No. 166)
Show how to implement a firstin, firstout queue with a priority queue. Show how to implement a stack with a priority queue.
asked
Jun 27, 2019
in
Algorithms
by
akash.dinkar12
Boss
(
42.4k
points)

15
views
cormen
algorithms
heap
priorityqueue
descriptive
0
votes
0
answers
3
Priority Queue
Is priority queue work efficiently with sorted array than unsorted array and heap for insertion and deletion operation? Then why do we apply priority queue in heap specially
asked
Dec 22, 2018
in
DS
by
srestha
Veteran
(
118k
points)

112
views
datastructures
priorityqueue
queues
0
votes
1
answer
4
Process Scheduling
asked
Oct 22, 2018
in
Operating System
by
rohan.1737
(
137
points)

83
views
processschedule
priorityqueue
0
votes
1
answer
5
Implement stack and queue using priority queue
On other sources, it is given that we need to assign high priorities to newly inserted element in case of stack otherwise low priority to newly inserted element in case of queue. My doubt here is that shouldn't ... heap priority queue and queue with minheap priority queue keeping above assumption of assigning priorities to newly inserted element?
asked
Jun 17, 2018
in
Algorithms
by
pallaviamu
(
477
points)

300
views
clrs
datastructures
stack
queues
priorityqueue
+1
vote
2
answers
6
stack operations using queue
Suppose Stack operations are implemented using Queue Operation. Push(x) and Pop() are stack operations whereas enqueue(x) and dequeue are Queue operations. Consider the code: pop() { return Q.dequeue(); } push(x) { n= Q.size(); //Q.size() returns the number of ... operation correctly (A) Q.enqueue(x) (B) Q.enqueue(Q.deqeue()) (C) Q.dequeue(Q.enqueue(x)) (D) Q.dequeue()
asked
Nov 12, 2017
in
DS
by
Parshu gate
Active
(
3.1k
points)

408
views
datastructures
stack
queues
priorityqueue
0
votes
1
answer
7
Priority queue stack
How to implement Priority queue using stack?What will be time complexity for Enqueue and Dequeue operations? Edit: Updated the question clearly
asked
Dec 18, 2016
in
Programming
by
rahul sharma 5
Boss
(
25.6k
points)

337
views
datastructures
priorityqueue
testseries
+1
vote
1
answer
8
UGCNETAUG2016III34
A priority queue is implemented as a maxheap. Initially, it has five elements. The levelorder traversal of the heap is as follows : 20, 18, 15, 13, 12 Two new elements 10' and 17' are inserted in the heap in that order. The levelorder traversal of the heap after the insertion of the ... 10 20, 18, 17, 12, 13, 10, 15 20, 18, 17, 10, 12, 13, 15 20, 18, 17, 13, 12, 10, 15
asked
Oct 1, 2016
in
Others
by
makhdoom ghaya
Boss
(
30.7k
points)

793
views
ugcnetaug2016iii
datastructures
priorityqueue
0
votes
1
answer
9
UGCNETJune2010II22
What is the most appropriate data structure to implement a priority queue ? Heap Circular array Linked list Binary tree
asked
Sep 16, 2016
in
DS
by
makhdoom ghaya
Boss
(
30.7k
points)

512
views
ugcnetjune2010ii
datastructures
priorityqueue
+1
vote
1
answer
10
Priority Queue
How many minimum queues are required to implement a priority queue?
asked
Jun 22, 2016
in
DS
by
tripathiambuj
(
11
points)

561
views
priorityqueue
datastructures
+31
votes
3
answers
11
GATE19974.7
A priority queue $Q$ is used to implement a stack that stores characters. PUSH (C) is implemented as INSERT $(Q, C, K)$ where $K$ is an appropriate integer key chosen by the implementation. POP is implemented as DELETEMIN$(Q)$. For a sequence of operations, the keys chosen are in nonincreasing order nondecreasing order strictly increasing order strictly decreasing order
asked
Sep 29, 2014
in
DS
by
Kathleen
Veteran
(
52.2k
points)

5k
views
gate1997
datastructures
stack
normal
priorityqueue
To see more, click for the
full list of questions
or
popular tags
.
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
ISRO CSE 2020 PAPER ANALYSE
BARC OCES/DGFS 2020
ISI CMI PDF by GATE Overflow
Management Trainee Recruitment COAL INDIA 2020
ECIL Interview Experience
Follow @csegate
Recent questions tagged priorityqueue
Recent Blog Comments
On an all, IT branch is not eligible then,or is...
What was the answer for checksum field in tcp...
@CSHuB You need to choose "systems" as post...
@cshub.....if you are branch computer engineering...
Hey all! I can't see the CS branch here? How...
50,741
questions
57,253
answers
198,069
comments
104,705
users