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
0
votes
0
answers
1
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
in
Algorithms
by
akash.dinkar12
Boss
(
41.8k
points)

13
views
cormen
algorithms
heap
priorityqueue
descriptive
0
votes
0
answers
2
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
(
117k
points)

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

72
views
processschedule
priorityqueue
0
votes
1
answer
4
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
(
469
points)

281
views
clrs
datastructure
stack
queues
priorityqueue
+1
vote
1
answer
5
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)

390
views
datastructure
stack
queues
priorityqueue
0
votes
1
answer
6
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.2k
points)

317
views
datastructure
priorityqueue
testseries
+1
vote
1
answer
7
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
(
29.9k
points)

775
views
ugcnetaug2016iii
datastructure
priorityqueue
0
votes
1
answer
8
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
(
29.9k
points)

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

551
views
priorityqueue
datastructure
+30
votes
3
answers
10
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.1k
points)

4.7k
views
gate1997
datastructure
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
OFFICIAL GATE MOCK TEST RELEASED
IIITH: Winter Research Admissions 2019 (For Spring 2020)
TIFR and JEST exam
Minimal Deterministic Finite Automata
To be aware of fake GATE test series
Follow @csegate
Recent questions tagged priorityqueue
Recent Blog Comments
What region behind page not found in gate...
Sir can you please suggest some way like how can...
I think it's been refactored...
@ankitgupta.1729 options after JEST for...
@ankitgupta.1729 @arjun sir There is no...
50,651
questions
56,214
answers
194,175
comments
95,430
users