Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged greedy-algorithms
1
1 vote
1
1 answer
159
159 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
159
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
+
–
0
0 votes
1
1 answer
122
122 views
UGC NET CSE | December 2025 | Part 2 | Question: 46
Which of the following are limitations of Greedy algorithms?They always fail for NP hard problem.They may not give the optimal solution for all problems.They are faster t...
Shubham Sharma 2
122
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithms
greedy-algorithms
+
–
0
0 votes
1
1 answer
155
155 views
UGC NET CSE | December 2025 | Part 2 | Question: 47
Match the LIST-I with LIST-IILIST-ILIST-IIA.Dynamic programmingI.Floyd Warshall Shortest pathB.GreedyII.Huffman codingC.Back trackingIII.Hamiltonian cycle problemD.Branch...
Shubham Sharma 2
155
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithm-design
dynamic-programming
greedy-algorithms
backtracking
branch-and-bound
shortest-path
huffman-code
graph-algorithms
+
–
0
0 votes
1
1 answer
124
124 views
UGC NET CSE | December 2025 | Part 2 | Question: 48
Match the LIST-I with LIST-IILIST - ILIST - IIA.Dijkstra's AlgorithmI.GPS route findingB.Huffman CodingII.Data compressionC.KMP string matchingIII.Text editor search func...
Shubham Sharma 2
124
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithms
graph-algorithms
data-compression
string-matching
greedy-algorithms
network-flow
+
–
1
1 vote
1
1 answer
431
431 views
ZEAL TEST ALGORITHM
NIL DAS
431
views
asked
Dec 10, 2025
Algorithms
greedy-algorithms
+
–
0
0 votes
1
1 answer
140
140 views
ISRO CSE 2025 | Question: 38
Which of the following is true about Greedy algorithm?does not make any optimizationmakes local optimal decisions based on the selected criterionrequires exhaustive searc...
Shubham Sharma 2
140
views
asked
Nov 8, 2025
Algorithms
isro-cse-2025
algorithm-design
greedy-algorithms
algorithms
+
–
1
1 vote
3
3 answers
591
591 views
UGC NET CSE | June 2025 | Part 2 | Question: 66
Which of the following algorithms use Greedy strategy?Dijkstra's algorithmKruskal's algorithmHuffman codingBellman-Ford algorithmChoose the correct answer from the option...
Shubham Sharma 2
591
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-june2025
greedy-algorithms
algorithm-design
dijkstras-algorithm
kruskals-algorithm
huffman-code
bellman-ford
+
–
0
0 votes
1
1 answer
199
199 views
NIELIT Scientific Assistant June 2025 | Question: 72
Which of the following problems can be solved using a greedy approach?Knapsack problem ($0/1$ version)Job Scheduling with deadlines and profitsFibonacci sequence calculat...
Shubham Sharma 2
199
views
asked
Jul 24, 2025
Algorithms
nielit-sta-2025
greedy-algorithms
algorithm-design
analysis
+
–
1
1 vote
1
answers
1 answer
1.3k
1.3k views
Question - 2 | DPP | Greedy Method
Which of the statement is/are correct?(a) First edge added by Kruskal’s algorithm can be the last edge added by prim’s algorithm(b) In a graph, if one raises the length o...
Debargha Mitra Roy
1.3k
views
asked
Aug 25, 2024
Algorithms
algorithms
graph-algorithms
greedy-algorithms
prims-algorithm
kruskals-algorithm
minimum-spanning-tree
+
–
0
0 votes
1
1 answer
535
535 views
Algorithm Madeeasy Workbook
As we have to select maximal set of “non overlapping” activities. So like job scheduling algo of greedy we can solve it. So according to that complexity must be O(n logn)...
Sajal Mallick
535
views
asked
Nov 27, 2023
Algorithms
made-easy-booklet
algorithms
time-complexity
greedy-algorithms
algorithm-design
+
–
1
1 vote
1
1 answer
3.0k
3.0k views
consider the following message BCCABBDDAECCBBAEDDCC find the no of bits requiered for huffman encoding of above message
consider the following message BCCABBDDAECCBBAEDDCC find the no of bits requiered for huffman encoding of above message
amrit22
3.0k
views
asked
Sep 24, 2023
Algorithms
algorithms
greedy-algorithms
huffman-code
+
–
3
3 votes
2
answers
2 answers
2.6k
2.6k views
Gate@Zeal Booklet
Can anyone help in solving the question 105 to 109.I don't have answer key I want to confirm my answer ...i will update my answer in the comments.
DeadMann
2.6k
views
asked
Jun 24, 2023
Algorithms
kruskals-algorithm
greedy-algorithms
prims-algorithm
minimum-spanning-tree
zeal-test-series
zeal-workbook
+
–
3
3 votes
1
1 answer
845
845 views
TIFR CSE 2023 | Part B | Question: 3
Given a set $\mathcal{F}$ of intervals $\left(s_{i}, t_{i}\right)_{i=1}^{n}$ on the integer line (assume all $s_{i}, t_{i}$ are distinct), a subset $S$ of $\mathcal{F}$ i...
admin
845
views
asked
Mar 14, 2023
Algorithms
tifr2023
algorithms
greedy-algorithms
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
Which one is right ? what will be the right answer assigning 0 to the left edges or right?
Nisha Bharti
1.1k
views
asked
Nov 26, 2022
Algorithms
huffman-code
greedy-algorithms
algorithm-design
+
–
24
24 votes
4
4 answers
1.7k
1.7k views
GO Classes CS Test Series | Algorithms | Topic Wise Test 3 | Question: 10
Consider yourself an engineer who wants to design a greedy algorithm for a tour company.The tour company will be given a list of $n$ tourists, each with a positive minimu...
GO Classes
1.7k
views
asked
Jun 26, 2022
Algorithms
goclasses_cs_algo_tw3
goclasses
algorithms
greedy-algorithms
two-marks
+
–
13
13 votes
2
2 answers
1.6k
1.6k views
GO Classes CS Test Series | Algorithms | Topic Wise Test 3 | Question: 12
Recall the Interval Scheduling Problem. A set of $n$ requests is given, each with a given start and finish time, $[s_i, f_i ].$ The objective is to compute the maximum nu...
GO Classes
1.6k
views
asked
Jun 26, 2022
Algorithms
goclasses_cs_algo_tw3
goclasses
algorithms
greedy-algorithms
multiple-selects
two-marks
+
–
0
0 votes
1
answers
1 answer
2.7k
2.7k views
Applied Test Series
Consider the following items with their associated weights and values. If a knapsack of capacity 25 units of weight is available and we are allowed to take either the ite...
LRU
2.7k
views
asked
Dec 28, 2021
Algorithms
test-series
knapsack-problem
algorithms
greedy-algorithms
+
–
0
0 votes
1
1 answer
727
727 views
Testbook Test Series
rsansiya111
727
views
asked
Dec 17, 2021
Algorithms
testbook-test-series
greedy-algorithms
knapsack-problem
+
–
Page:
1
2
3
4
next »