Question: ( b ) Consider a peculiar city with N towns and M bidirectional roads ( connecting towns ) classified into three types. This city is
b Consider a peculiar city with towns and bidirectional roads connecting towns
classified into three types. This city is peculiar due to unconventional regulations
regarding road usage: men are permitted to travel only on roads of types and while
women are permitted to travel only on roads of types and exclusively. The Mayor
of the city intends to renovate the city by reconstructing some roads, with the condition
that the normal routine of the citizens should not be hampered.
Now, you are hired as a computer scientist to answer an important question: What is
the maximum number of roads that can be renovated remain closed for traffic during
renovation while ensuring that the city remains connected for both men and women?
The city is said to be connected if it is still possible to travel form any town to any
town using the existing roads.
For the above problem description:
i Formulate the problem as a graph problem,
ii Develop the solution using a wellknown graph algorithm.
iii Write the pseudocode of the solution.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
