766
GB
Dijkstra's algorithm works correctly for?
IN
डिज्क्स्ट्रा का एल्गोरिदम किसके लिए सही ढंग से काम करता है?
A
Graphs with negative weights
नकारात्मक भार वाले ग्राफ़
B
Directed acyclic graphs only
केवल निर्देशित चक्रीय ग्राफ़
C
Graphs with non-negative weights
गैर-नकारात्मक भार वाले ग्राफ़
D
All graphs
सभी ग्राफ़
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Dijkstra's algorithm requires non-negative edge weights; negative weights require Bellman-Ford.
व्याख्या (हिन्दी)
दिज्क्स्ट्रा के एल्गोरिदम को गैर-नकारात्मक किनारे भार की आवश्यकता होती है; नकारात्मक भार के लिए बेलमैन-फोर्ड की आवश्यकता होती है।