Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Algorithms

Quick practice

Question 1 of 5

Consider the following directed graph.

Print the sequence of vertices identified by Dijkstra ( in the order of 'vertices deleted from the min heap' ) when started from vertex A.

A

\mathrm{A} \rightarrow \mathrm{B} \rightarrow \mathrm{D} \rightarrow \mathrm{C} \rightarrow \mathrm{E} \rightarrow \mathrm{F}

B

A \rightarrow B \rightarrow D \rightarrow C \rightarrow F \rightarrow E

C

\mathrm{A} \rightarrow \mathrm{B} \rightarrow \mathrm{C} \rightarrow \mathrm{D} \rightarrow \mathrm{F} \rightarrow \mathrm{E}

D

A \rightarrow B \rightarrow C \rightarrow D \rightarrow E \rightarrow E

Get unlimited practice with GATE - CSIT, DSAI & Interview Preparation subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go