Googol: Google Code Jam 2008 - Minimum Scalar Product You are given two vectors v1=(x1,x2,...,xn) and...

Please Visit: http://ift.tt/1ajReyV



Googol: Google Code Jam 2008 - Minimum Scalar Product

You are given two vectors v1=(x1,x2,...,xn) and v2=(y1,y2,...,yn). The scalar product of these vectors is a single number, calculated as x1y1+x2y2+...+xnyn.

Suppose you are allowed to permute the coordinates of each vector as you wish. Choose two permutations such that the scalar product of your two new vectors is the smallest possible, and output that minimum scalar product.

http://ift.tt/1ni90Km

http://ift.tt/1lrU40t



Googol: Google Code Jam 2008 - Minimum Scalar Product







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1lrU40v

via LifeLong Community

No comments:

Post a Comment