Question
In the design and analysis of algorithms, which of the
following algorithms is based on the greedy approach?Solution
Dijkstra’s algorithm is based on the greedy approach, which selects the locally optimal solution at each step with the goal of finding the shortest path from the source to all other vertices in a graph. The algorithm repeatedly picks the nearest unvisited vertex and calculates the shortest path to all its neighbors, ensuring optimal solutions for each subproblem. Merge Sort : A divide-and-conquer algorithm, not greedy. Depth-First Search : DFS is a traversal technique, not a greedy algorithm. Bellman-Ford Algorithm : This algorithm can handle negative weight edges, but it is not based on the greedy approach. Quick Sort : A divide-and-conquer algorithm, not greedy.
According to India State of Forest Report 2021 which among the following state of India has the largest forest cover area wise?
In which language is the film "Everyone is a Hero" that has been chosen as India’s official entry to the best foreign language film category at the 96...
Consider the following Subjects:
1. Health
2. Forests
3. Protection of wild animals and birds
4. Wei...
How many gold medals did India win at the 66th International Mathematical Olympiad (IMO) 2025?
In which session of Kumaon Congress the resolution related to non-cooperation with the British government passed?
Who was appointed as the new governor of the Reserve Bank of India in 2025?
President Draupadi Murmu released a postage stamp in whose memory?
Which of the following countries will host the 2026 G20 Summit to show its steadfast commitment to the G20 initiatives for a global geopolitical and eco...
Which village of the state was selected 1st prize for the water conservation category by the Union ministry of jal shakti?
Which company has partnered with PayU to introduce instant credit cards to its Indian users?