The GATE Grind

GATE 2020 CS – Question 5

General Aptitude · Analytical Aptitude: Logical Reasoning and Deduction · 1 mark · Multiple choice

There are multiple routes to reach from node 1 to node 2, as shown in the network. [Figure: edge costs 1→a 200, 1→b 300, 1→f 100, a→c 100, a→2 200, c→2 100, b→2 200, b→d 0, d→e 100, f→b 0, f→e 100, e→2 200]

The cost of travel on an edge between two nodes is given in rupees. Nodes 'a', 'b', 'c', 'd', 'e', and 'f' are toll booths. The toll price at toll booths marked 'a' and 'e' is Rs. 200, and is Rs. 100 for the other toll booths. Which is the cheapest route from node 1 to node 2?

Diagram for GATE 2020 CS question 5
  1. 1-a-c-2
  2. 1-f-b-2
  3. 1-b-2
  4. 1-f-e-2

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) 1-f-b-2

Explanation

1-f-b-2 costs 100+0+200 = 300 in edges plus tolls f(100) and b(100), total 500. 1-b-2 costs 600, and 1-a-c-2 and 1-f-e-2 cost 700 each. The cheapest is 1-f-b-2.