Question
Which statement correctly explains why Dijkstra's algorithm produces incorrect shortest-path results on graphs containing negative edge weights, even when no negative-weight cycle exists?
More Data Structure Questions
- A connected undirected graph has 12 vertices. What is the minimum number of edges required to form a spanning tree, and how many edges would the complete g...
- In a dynamic array (such as Python's list or Java's ArrayList) that doubles its capacity whenever it becomes full, what is the amortized time complexity of...
- Which of the following is a key principle of the SOLID design principles that focuses on ensuring a class has only one reason to change?
- In B+ trees, which of the following statements is FALSE?
- Which design pattern is best suited for managing the creation of objects without specifying their concrete classes?
- Using the Master Theorem, what is the time complexity of the recurrence T(n) = 3T(n/2) + n²?
- In Python, what will be the output of the following code snippet, considering scope rules? x = 5 def func(): x = 10 def inner...
- Which traversal method is best for copying a binary tree?
- Which sorting algorithm follows the divide-and-conquer approach and typically achieves O(n log n) time complexity in both the average and worst case?
- Quick Sort degrades to its worst-case time complexity of O(n² ) under which of the following pivot selection conditions?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)