Dijkstra’s algorithm follows

2021

Dijkstra’s algorithm follows

  1. A.

    Greedy algorithm

  2. B.

    Branch and bound

  3. C.

    Back tracking

  4. D.

    Dynamic programming

  5. E.

    Question not attempted

Attempted by 868 students.

Show answer & explanation

Correct answer: A

Dijkstra’s algorithm is used to find the shortest path from a source node to all other nodes in a weighted graph with non-negative edge weights. It follows a greedy approach by always selecting the node with the smallest tentative distance from the source at each step. This ensures that once a node is visited, its shortest path is finalized. The algorithm maintains a priority queue to efficiently select the next node to process. It updates the distances of neighboring nodes and repeats until all nodes are processed. This greedy selection of the minimum distance node at each step is the key reason why Dijkstra’s algorithm is classified as a greedy algorithm.

हिन्दी उत्तर: डीजक्स्ट्रा एल्गोरिथ्म एक भारित ग्राफ में स्रोत नोड से अन्य सभी नोड्स तक की छोटी दूरी खोजने के लिए उपयोग किया जाता है, जिसमें गैर-ऋणात्मक किनारे भार होते हैं। यह एक लालची दृष्टिकोण का अनुसरण करता है, जो हर चरण में स्रोत से सबसे छोटी दूरी वाले नोड का चयन करता है। इससे यह सुनिश्चित होता है कि एक बार एक नोड का दौरा करने के बाद, उसकी छोटी दूरी निर्धारित हो जाती है। एल्गोरिथ्म एक प्राथमिकता भंडारण का उपयोग करता है ताकि अगले नोड का चयन करना अधिक कुशल बनाया जा सके। यह पड़ोसी नोड्स की दूरियों को अपडेट करता है और तब तक दोहराता है जब तक सभी नोड्स प्रोसेस नहीं हो जाते। इस लालची चयन के कारण हर चरण में न्यूनतम दूरी वाला नोड एल्गोरिथ्म को एक लालची एल्गोरिथ्म के रूप में वर्गीकृत करता है।

Explore the full course: Up Lt Grade Assistant Teacher 2025