# Tag Archives: Algorithms-Graph Shortest Paths Quiz

## Algorithms | Graph Shortest Paths | Question 9

Following statement is true or false? If we make following changes to Dijkstra, then it can be used to find the longest simple path, assume… Read More »

## Algorithms | Graph Shortest Paths | Question 8

In a weighted graph, assume that the shortest path from a source ‘s’ to a destination ‘t’ is correctly calculated using a shortest path algorithm.… Read More »

## Algorithms | Graph Shortest Paths | Question 7

What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices? (A) (B) (C) (D) Answer: (C) Explanation:… Read More »

## Algorithms | Graph Shortest Paths | Question 14

Suppose we run Dijkstra’s single source shortest-path algorithm on the following edge weighted directed graph with vertex P as the source. In what order do… Read More »

## Algorithms | Graph Shortest Paths | Question 4

In an unweighted, undirected connected graph, the shortest path from a node S to every other node is computed most efficiently, in terms of time… Read More »

## Algorithms | Graph Shortest Paths | Question 3

Dijkstra’s single source shortest path algorithm when run from vertex a in the below graph, computes the correct shortest path distance to (A) only vertex… Read More »

## Algorithms | Graph Shortest Paths | Question 2

To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is: (A) Queue… Read More »

## Algorithms | Graph Shortest Paths | Question 14

Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by… Read More »