Search found 3 matches

by boba5551
Fri Sep 08, 2006 1:09 am
Forum: Algorithms
Topic: Maximum sum of n vectors -> in O(n lg n)
Replies: 15
Views: 6491

If your example is only vectors (0 , 1) and (1000 , -1000) - the answer is only vector (1000 , -1000). Give me some test for which this idea is not correct.
by boba5551
Thu Sep 07, 2006 9:58 pm
Forum: Algorithms
Topic: Maximum sum of n vectors -> in O(n lg n)
Replies: 15
Views: 6491

What about this...
For some vector V you know until which vector U it grows (until degree between V and U is <= 90!?). Using Binary Search you can find U. Before looking for result you can find sum of first i vectors i = 1 .. N and in O(1) for each pair of vectors you can find max distance. It's n ...
by boba5551
Thu Sep 07, 2006 8:56 pm
Forum: Algorithms
Topic: Maximum sum of n vectors -> in O(n lg n)
Replies: 15
Views: 6491

Go to advanced search