Match List I with List II

List I

List II

(A) Topological sort of DAG

(I) O(V + E)

(B) Kruskal's MST algorithm

(II) O(VE)

(C) Bellman-Ford's single-source shortest path algorithm

(III) θ (V + E)

(D) Floyd-Warshall's all-pair   shortest path algorithm

(IV) θ(V3)

 

Choose the correct answer from the options given below: 

This question was previously asked in
UGC NET Computer Science (Paper 2) 2020 Official Paper
View all UGC NET Papers >
  1. A - I, B - III, C - IV, D - II 
  2. A - III, B - I, C - IV, D - II 
  3. A - III, B - I, C - II, D - IV 
  4. A - I, B - III, C - II, D - IV 

Answer (Detailed Solution Below)

Option 4 : A - I, B - III, C - II, D - IV 
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
8.7 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 4.

Key Points

Topological sort of DAG= O(V + E)

Bellman-Ford's single-source shortest path algorithm=O(VE)

Floyd-Warshall's all-pairs shortest path algorithm= θ(V3)

Kruskal's MST algorithm= θ (V + E)

Due to sorting the edges, the dominant term in Kruskal's time complexity is O(ElogE). However, if we can conduct sorting in linear time or if the edges are already sorted, the problem can be solved by detecting whether there is a cycle in the graph or not. Since the edges have already been sorted, add each edge to MST one by one.

It is now possible to determine whether or not an undirected graph has a cycle:

1)   select one among DFT or BFT:- O(V+E)

2)   Using Union-Find:- O(ElogV)

 ∴ Kruskal’s MST algorithm :-  θ(V+E)

∴ Hence the correct answer is A - I, B - III, C - II, D - IV.

Latest UGC NET Updates

Last updated on Jun 6, 2025

-> The UGC NET Exam Schedule 2025 for June has been released on its official website.

-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.

-> The UGC NET 2025 online application form submission closed on 12th May 2025.

-> The June 2025 Exam will be conducted from 21st June to 30th 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 Dynamic Programming Questions

More Algorithm Design Techniques Questions

Get Free Access Now
Hot Links: rummy teen patti lucky teen patti teen patti wink teen patti master gold apk teen patti rummy