Search found 9 matches
- Sat Sep 09, 2006 2:38 am
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
- Fri Sep 08, 2006 1:31 am
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
- Fri Sep 08, 2006 12:38 am
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
- Thu Sep 07, 2006 9:03 pm
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
- Thu Sep 07, 2006 7:52 pm
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
- Thu Sep 07, 2006 5:50 pm
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
Well, I was wondering if someone has seen it on any of the online judging systems. It's part of a private competition, and the formulation is not in English. Srry. The text is pretty much what I've said in post #1, and here is the example test case (input contains N<10000, and a pair of numbers on ...
- Thu Sep 07, 2006 4:36 pm
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
- Thu Sep 07, 2006 2:11 pm
- Forum: Algorithms
- Topic: Maximum sum of n vectors -> in O(n lg n)
- Replies: 15
- Views: 6485
Maximum sum of n vectors -> in O(n lg n)
Given n 2d vectors, you are to pick those which would get you furthest from (0, 0). I used the following properties -> t1 : vectors making up the max sum will be consecutive a circular list sorted by angle, t2-> anglespan of these vectors will be less than PI.
[EDIT]: I thought I had a solution ...
[EDIT]: I thought I had a solution ...
- Fri Aug 11, 2006 5:58 am
- Forum: Volume 5 (500-599)
- Topic: 501 - Black Box
- Replies: 35
- Views: 22371
501 (Black Box)#$(%*#$!
Never mind, it got accepted.
mf wrote: The problem comes from NEERC' 1996 regionals. You can use the tests at http://www.acm.inf.ethz.ch/ProblemSetAr ... NERC/1996/ as a last resort.