Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider a peculiar city with N towns and M bidirectional roads ( connecting towns ) classified into three types. This city is peculiar due to
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 Can it be solved using max flowmincut algorithm? If not, then 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started