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
87
87 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
87
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
98
98 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
98
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithms
greedy-algorithms
+
–
0
0 votes
1
1 answer
112
112 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
112
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
101
101 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
101
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithms
graph-algorithms
data-compression
string-matching
greedy-algorithms
network-flow
+
–
1
1 vote
1
1 answer
410
410 views
ZEAL TEST ALGORITHM
NIL DAS
410
views
asked
Dec 10, 2025
Algorithms
greedy-algorithms
+
–
1
1 vote
3
3 answers
555
555 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
555
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
186
186 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
186
views
asked
Jul 24, 2025
Algorithms
nielit-sta-2025
greedy-algorithms
algorithm-design
analysis
+
–
1
1 vote
1
answers
1 answer
1.2k
1.2k 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.2k
views
asked
Aug 25, 2024
Algorithms
algorithms
graph-algorithms
greedy-algorithms
prims-algorithm
kruskals-algorithm
minimum-spanning-tree
+
–
0
0 votes
1
1 answer
525
525 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
525
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
831
831 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
831
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
+
–
23
23 votes
4
4 answers
1.5k
1.5k 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.5k
views
asked
Jun 26, 2022
Algorithms
goclasses_cs_algo_tw3
goclasses
algorithms
greedy-algorithms
two-marks
+
–
11
11 votes
2
2 answers
1.4k
1.4k 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.4k
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
696
696 views
Testbook Test Series
rsansiya111
696
views
asked
Dec 17, 2021
Algorithms
testbook-test-series
greedy-algorithms
knapsack-problem
+
–
1
1 vote
2
2 answers
3.6k
3.6k views
NIELIT 2017 July Scientist B (IT) - Section B: 60
$0/1$-Knapsack is a well known problem where, it is desired to get the maximum total profit by placing $n$ items (each item is having some weight and associated profit) i...
admin
3.6k
views
asked
Mar 30, 2020
Algorithms
nielit2017july-scientistb-it
algorithms
greedy-algorithms
knapsack-problem
+
–
Page:
1
2
3
4
next »