ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1815. Farm in San Andreas

How to make use of the FOCs for this problem?
We can write some FOCs which describe optimal point. But how to find point which satisfies these FOCs?
Re: How to make use of the FOCs for this problem?
Posted by bsu.mmf.team 2 Mar 2011 01:13
I suspect it is not necessary to find this point, you can get correct answer without knowing exact location of it. I haven't solved this problem yet, so it is a hypotesis only...
Re: How to make use of the FOCs for this problem?
Haven't ACed yet, but it seems I found the algo which uses 2 binary searches only.
Re: How to make use of the FOCs for this problem?
Posted by bsu.mmf.team 2 Mar 2011 23:45
If you want to use BS, you should have a sorted structure. What is it? Do you serach this point on some fixed line?
Re: How to make use of the FOCs for this problem?
Of course, I convert initial problem to some other problem, and there it is ordered structures =)
Re: How to make use of the FOCs for this problem?
Posted by svr 4 Mar 2011 11:51
Convex structure also gives O(lg n).
For example golden proportion search om segment.