Question
[Algorithm Analysis] Suppose two polices are planning to raid into houses along a street as they have information that each house has a certain amount
[Algorithm Analysis]
Suppose two polices are planning to raid into houses along a street as they have information that each house has a certain amount of black money. All houses along the street are arranged in a circle [the rst house is the neighbor of the last one]. But there is a constraint. All the householders are criminals and are friends in this street. So, if they raid adjacent houses,the house owners would contact between themselves and all the householders would ee away.
You have to help the police. You have the information about the amount of money of each house. Provide an algorithm to the police so that they can use it to rescue maximum amount of black money and catch their owners.
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