Re: [gcj] Re: minimum scalar

2011-05-04 Thread Bartholomew Furrow
i don't understand the meaning of this sentence : Choose two permutations such that the scalar product of your two new vectors is the smallest possible, and output that minimum scalar product. Why two??? One permutation for each of the vectors. -- You received this message because you

Re: [gcj] Re: minimum scalar

2011-05-01 Thread Seydou TAPSOBA
Without experience you will be disapointed while using C++; it seems Java has many out of the box functions that you can use!! so don't be shy, go straight forward to java programming!! 2011/4/29 MUCYO Placide mup...@gmail.com I would like to know if I can have assistance from you or guidance

Re: [gcj] Re: minimum scalar

2011-04-29 Thread MUCYO Placide
I would like to know if I can have assistance from you or guidance about matlab programming I wanna be expert by self teaching . Please advise me. On Fri, Apr 29, 2011 at 2:56 AM, junaid ahmed junaidahmedcs...@gmail.comwrote: can some one please tell me that on what topics should i focus more. I

Re: [gcj] Re: minimum scalar

2011-04-28 Thread Umer Farooq
Can you please specify the problem? On Thu, Apr 28, 2011 at 10:49 AM, vettukal vettu...@gmail.com wrote: May be this solve the problme BigInteger product = new BigInteger(0); BigInteger first = new BigInteger(0); BigInteger second = new BigInteger(0);

Re: [gcj] Re: minimum scalar

2011-04-28 Thread Sakthi Priyan
@vettukal: Looks like you are using Topcoder's CodeProcessor plugin... ;) On Thu, Apr 28, 2011 at 11:32 AM, Umer Farooq the.um...@gmail.com wrote: Can you please specify the problem? On Thu, Apr 28, 2011 at 10:49 AM, vettukal vettu...@gmail.com wrote: May be this solve the problme

Re: [gcj] Re: minimum scalar

2011-04-28 Thread Seydou TAPSOBA
Thank all !! I found the problem. wrong line = long temp = u[i]*v[dim-i-1]; line after correction = long temp = (long) u[i]*v[dim-i-1]; It was a casting problem 2011/4/28 Umer Farooq the.um...@gmail.com Can you please specify the problem? On Thu, Apr 28, 2011 at 10:49 AM,

Re: [gcj] Re: minimum scalar

2011-04-28 Thread junaid ahmed
can some one please tell me that on what topics should i focus more. I am good at C++. Is it sufficient enough. thanks junaid On Thu, Apr 28, 2011 at 1:16 PM, Seydou TAPSOBA taps...@gmail.com wrote: Thank all !! I found the problem. wrong line = long temp = u[i]*v[dim-i-1];

[gcj] Re: minimum scalar

2011-04-27 Thread vettukal
/* * using big integer solved the problem. * dont know the problem with ur code. * Try this. BigInteger product = new BigInteger(0); BigInteger first = new BigInteger(0); BigInteger second = new BigInteger(0); for(int i=0;iatomList.length;i++)

[gcj] Re: minimum scalar

2011-04-27 Thread vettukal
May be this solve the problme BigInteger product = new BigInteger(0); BigInteger first = new BigInteger(0); BigInteger second = new BigInteger(0); for(int i=0;iatomList.length;i++) { first=new