GATE CS 2020 · Question 5 · General Aptitude · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

There are multiple routes to reach from node 1 to node 2, as shown in the network.
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?

Directed network with nodes 1, a, b, c, d, e, f, 2. Directed edges with travel costs (rupees): 1→a cost 200; a→c cost 100; a→2 cost 200; c→2 cost 100; 1→b cost 300; b→2 cost 200; b→d cost 0; f→b cost 0; 1→f cost 100; d→e cost 100; f→e cost 100; e→2 cost 200.
  1. (A) 1-a-c-2
  2. (B) 1-f-b-2
  3. (C) 1-b-2
  4. (D) 1-f-e-2
Answer

Answer (B)

Answer from the official GATE CS 2020 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes