Bellman Ford algorithm is an example for ______.
2024
Bellman Ford algorithm is an example for ______.
- A.
Linear Programming
- B.
Greedy Algorithms
- C.
Dynamic Programming
- D.
More than one of the above
- E.
None of the above
Attempted by 548 students.
Show answer & explanation
Correct answer: C
Explanation
The Bellman-Ford algorithm is a classic example of Dynamic Programming. It works by relaxing all edges in the graph repeatedly. This process ensures that the shortest path to every node is found, even if the graph contains negative weight edges.
हिन्दी व्याख्या
बेलमैन-फोर्ड एल्गोरिद्म गतिशील प्रोग्रामिंग (Dynamic Programming) का एक क्लासिक उदाहरण है। यह ग्राफ में सभी किनारों को बार-बार रिलैक्स करके काम करता है। यह प्रक्रिया सुनिश्चित करती है कि नकारात्मक वजन वाले किनारों वाले ग्राफ में भी प्रत्येक नोड तक का सबसे छोटा पथ पाया जाए।