Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged priority-queue
1
1 vote
1
1 answer
102
102 views
GO Classes DPP | GATE CS, DA | Algorithms | Time Complexity
Suppose Huffman coding is implemented as follows.Initially, the $n$ symbols are stored in a min priority queue according to their frequencies.The algorithm repeatedly per...
GO Classes
102
views
asked
Aug 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-261
goclasses-cs-dpp
goclasses-cs-dpp-day-359
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
time-complexity
huffman-coding
greedy-algorithms
priority-queue
+
–
7
7 votes
1
1 answer
442
442 views
GO Classes DPP | GATE CS, DA | Data Structure | Stack & Queue
Which of the following statements are true?$\text{S1.}$ Stack operations $\texttt{push}$, $\texttt{pop}$, and $\texttt{isEmpty}$ can be worst-case $O(1)$ for a linked-lis...
GO Classes
442
views
asked
Jul 27
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-234
goclasses-cs-dpp
goclasses-cs-dpp-day-332
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
stack
queue
priority-queue
+
–
4
4 votes
1
1 answer
162
162 views
GO Classes DPP | GATE CS, DA | Data Structure | Priority Update in Min-Heap
Consider the following min-heap where each node is written as $\texttt{(value, priority)}$:Now perform these operations in order:$\texttt{updatePriority(A, 8)}$ $\texttt{...
GO Classes
162
views
asked
Jul 22
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-231
goclasses-cs-dpp
goclasses-cs-dpp-day-329
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
min-heap
priority-queue
+
–
4
4 votes
4
4 answers
1.7k
1.7k views
ISRO CSE 2023 | Question: 69
In a priority queue, insertion and deletion can be done atFrontBackMiddleAny position
admin
1.7k
views
asked
Sep 28, 2024
Data Structures
isro-cse-2023
priority-queue
data-structures
+
–
27
27 votes
3
3 answers
16.8k
16.8k views
GATE CSE 2023 | Question: 36
Let $A$ be a priority queue for maintaining a set of elements. Suppose $A$ is implemented using a max-heap data structure. The operation $\text{EXTRACT-MAX} (A)$ extracts...
admin
16.8k
views
asked
Feb 15, 2023
Data Structures
gatecse-2023
data-structures
priority-queue
time-complexity
binary-heap
two-marks
+
–
0
0 votes
1
1 answer
614
614 views
Made easy workbook question
Q.which of the following data structure cannot be used for efficient implementation of Priority Queue?a. Binary heapb. Height balanced binary tree.c. Sorted array
Shraddha dwevedi
614
views
asked
Nov 24, 2021
Data Structures
made-easy-booklet
data-structures
priority-queue
+
–
0
0 votes
3
3 answers
1.5k
1.5k views
UGC NET CSE | December 2019 | Part 2 | Question: 37
What is the worst case running time of Insert and Extract-min, in an implementation of a priority queue using an unsorted array? Assume that all the insertions can be acc...
soujanyareddy13
1.5k
views
asked
May 12, 2021
Algorithms
ugcnetcse-dec2019-paper2
data-structures
priority-queue
time-complexity
+
–
2
2 votes
2
2 answers
1.5k
1.5k views
NIELIT 2017 July Scientist B (CS) - Section B: 8
A priority queue is implemented as a Max-Heap. Initially, it has $5$ elements. The level-order traversal of the heap is: $10,8,5,3,2$. Two new elements $1$ and $7$ are in...
admin
1.5k
views
asked
Mar 30, 2020
Data Structures
nielit2017july-scientistb-cs
data-structures
priority-queue
binary-heap
+
–
0
0 votes
0
0 answers
624
624 views
Cormen Edition 3 Exercise 6.5 Question 7 (Page No. 166)
Show how to implement a first-in, first-out queue with a priority queue. Show how to implement a stack with a priority queue.
akash.dinkar12
624
views
asked
Jun 27, 2019
Algorithms
cormen
algorithms
binary-heap
priority-queue
descriptive
+
–
0
0 votes
0
0 answers
982
982 views
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 specia...
srestha
982
views
asked
Dec 22, 2018
Data Structures
data-structures
priority-queue
queue
+
–
0
0 votes
2
2 answers
1.3k
1.3k views
Process Scheduling
rohan.1737
1.3k
views
asked
Oct 22, 2018
Operating System
process-scheduling
priority-queue
+
–
0
0 votes
1
1 answer
1.7k
1.7k views
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 o...
pallaviamu
1.7k
views
asked
Jun 17, 2018
Data Structures
data-structures
priority-queue
descriptive
+
–
1
1 vote
1
1 answer
2.2k
2.2k views
ISRO-DEC2017-52
A priority queue is implemented as a $Max$-$heap.$Initially, it has $5$ elements. The level order traversal of the heap is $10,8,5,3,2.$ Two new elements $1$ and $7$ are ...
gatecse
2.2k
views
asked
Dec 17, 2017
Data Structures
isrodec2017
data-structures
binary-heap
priority-queue
+
–
2
2 votes
1
1 answer
1.8k
1.8k views
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 co...
Parshu gate
1.8k
views
asked
Nov 11, 2017
Data Structures
data-structures
stack
queue
priority-queue
+
–
2
2 votes
1
answers
1 answer
2.5k
2.5k views
Test by Bikram | Mock GATE | Test 1 | Question: 32
Fill in the blanks in the procedure:void Prod (Element Type X, Priority Queue H) { int i; if (IsFull(H)) { Error ("Priority queue is full"); return; } for (i=++H - size; ...
Bikram
2.5k
views
asked
Jan 16, 2017
GATE
tbb-mockgate-1
data-structures
priority-queue
+
–
0
0 votes
1
1 answer
1.3k
1.3k views
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
rahul sharma 5
1.3k
views
asked
Dec 17, 2016
Programming in C
data-structures
priority-queue
test-series
+
–
5
5 votes
4
answers
4 answers
2.2k
2.2k views
GATE Overflow | Data Structures | Test 1 | Question: 5
A stack is used to implement a priority queue where $ENQUEUE(Q, x, p)$ ($p$ denotes priority, higher the better) and $DEQUE(Q)$ are implemented by appropriate PUSH and PO...
Arjun
2.2k
views
asked
Oct 10, 2016
Data Structures
go-ds-1
data-structures
stack
priority-queue
numerical-answers
two-marks
+
–
1
1 vote
1
1 answer
2.9k
2.9k views
UGC NET CSE | August 2016 | Part 3 | Question: 34
A priority queue is implemented as a max-heap. Initially, it has five elements. The levelorder traversal of the heap is as follows :20, 18, 15, 13, 12Two new elements ‘10...
Misbah Ghaya
2.9k
views
asked
Oct 1, 2016
Data Structures
ugcnetcse-aug2016-paper3
data-structures
priority-queue
+
–
0
0 votes
2
2 answers
8.1k
8.1k views
UGC NET CSE | June 2010 | Part 2 | Question: 22
What is the most appropriate data structure to implement a priority queue ?HeapCircular arrayLinked listBinary tree
Misbah Ghaya
8.1k
views
asked
Sep 15, 2016
Data Structures
ugcnetcse-june2010-paper2
data-structures
priority-queue
+
–
1
1 vote
1
1 answer
2.2k
2.2k views
Priority Queue
How many minimum queues are required to implement a priority queue?
tripathiambuj
2.2k
views
asked
Jun 22, 2016
Data Structures
priority-queue
data-structures
+
–
73
73 votes
5
answers
5 answers
38.6k
38.6k views
GATE CSE 1997 | Question: 4.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 ...
Kathleen
38.6k
views
asked
Sep 29, 2014
Data Structures
gate1997
data-structures
stack
normal
priority-queue
+
–
To see more, click for the
full list of questions
or
popular tags
.