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 1668. Death Star 2

How to minimize sum of squares of weights???
Subj. It's standard problem to get the best vector - even formula exists, but for linearly independent vectors. But how then minimize second tieresolver in case of linearly dependent system?
My iterative approach needs to find subsystems of linearly dependent vectors. Is there easier approach, may be formula?
Re: How to minimize sum of squares of weights???
Posted by Samsonov Alex [USU] 21 Dec 2008 22:09
There is a formula, but it is really a mess and it is quite non-trivial to obtain. There are different apporaches possible, one of them is to notice that to minimize the sum of squares you should do almost the same thing as when you minimize the difference vector.