Match List 1 with List 2 and choose the correct answer from the code given below:

List I

(Graph Algorithm)

List II

(Time Complexity) 

a) Dijkstra’s algorithm

i) Θ(E log E)

b) Kruskal’s algorithm

ii) Θ(V3)

c) Floyd-Warshall algorithm

iii) Θ(V2)

d) Topological sorting

iv) Θ(V + E)

 

Where V and E are the number of vertices and edges in graph respectively.

This question was previously asked in
UGC NET Computer Science (Paper 2) Dec 2018 Paper
View all UGC NET Papers >
  1. (a)-(i), (b)-(iii), (c)-(iv), (d)-(ii)
  2. (a)-(i), (b)-(iii), (c)-(ii), (d)-(iv)
  3. (a)-(iii), (b)-(i), (c)-(ii), (d)-(iv)
  4. (a)-(iii), (b)-(i), (c)-(iv), (d)-(ii)

Answer (Detailed Solution Below)

Option 3 : (a)-(iii), (b)-(i), (c)-(ii), (d)-(iv)
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
13 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

Graph Algorithm

Time Complexity)

Dijkstra’s algorithm

Θ (V​2)

Kruskal’s algorithm

Θ (Elog E)

Floyd-Warshall algorithm

Θ(V3)

Topological sorting

 Θ(V + E)

 

  • Dijkstra's algorithm is an algorithm for finding the shortest paths between nodes in a graph and time complexity is O(V​2).
  • Kruskal's algorithm is a minimum-spanning-tree algorithm which finds an edge of the least possible weight that connects any two trees in the forest.
  • A topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge uv from vertex u to vertex v,u comes before v.
  • Floyd–Warshall algorithm is an algorithm for finding shortest paths in a weighted graph with positive or negative edge weights. A single execution of the algorithm will find the lengths of shortest paths between all pairs of vertices.
Latest UGC NET Updates

Last updated on Jun 12, 2025

-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Introduction Questions

More Asymptotic Worst Case Time and Time Complexity Questions

Get Free Access Now
Hot Links: teen patti classic teen patti all games teen patti real cash game