Consider a weighted directed graph. The current shortest distance from source S to node x is represented by d[x]. Let d[v] = 29, d[u] = 15, w[u, v] = 12. What is the updated value of d[v] based on current information?

This question was previously asked in
UGC NET Computer Science (Paper 2) Dec 2019 Paper
View all UGC NET Papers >
  1. 29
  2. 27
  3. 25
  4. 17

Answer (Detailed Solution Below)

Option 2 : 27
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
15.1 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

Given values are: d[v] = 29

d[u] = 15

where d[x] represents the current shortest distance from source S to node x.

w[u, v] = 12

Representation in graph form:

F2 R.S 1.6.20 Pallavi D6

From graph it is clear that, source node s to node v path is also described as: s -> u -> v

Cost of this path = 15 + 12 = 27

So, update value of d[v] = 27

Latest UGC NET Updates

Last updated on Jun 22, 2025

-> The UGC Net Admit Card has been released on its official website today.

-> 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 Graphs Questions

More Graph Theory Questions

Get Free Access Now
Hot Links: teen patti palace teen patti jodi online teen patti real money teen patti master online teen patti gold apk