recategorized by
186 views
0 0 votes

Which of the following problems can be solved using a greedy approach?

  1. Knapsack problem ($0/1$ version)
  2. Job Scheduling with deadlines and profits
  3. Fibonacci sequence calculation
  4. Finding the shortest path in a weighted graph

1 Answer

Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
186
186 views
Shubham Sharma 2 asked Jul 24, 2025
186 views
Which of the following problems is solved using dynamic programming?Merge sortDepth-first searchBreadth-first searchFibonacci sequence calculation
1 1 vote
1 1 answer
259
259 views
Shubham Sharma 2 asked Jul 24, 2025
259 views
Which of the following algorithms is used to find the minimum spanning tree in a graph?Dijkstra's AlgorithmKruskal's AlgorithmBellman-Ford AlgorithmFloyd-Warshall Algorit...
1 1 vote
1 1 answer
138
138 views
Shubham Sharma 2 asked Jul 24, 2025
138 views
Which of the following is the correct asymptotic notation for an algorithm that grows slower than $\text{O}\left(n^{\wedge} 2\right)$ but faster than $\text{O}(n)?$$\text...
2 2 votes
1 1 answer
196
196 views
Shubham Sharma 2 asked Jul 24, 2025
196 views
Which traversal method can be used to print the nodes of a binary tree in ascending order?Pre-order traversalPost-order traversalIn-order traversalLevel-order traversal