I do really need to consult you guys about java codes.
Please give me some pointer where should I refer regarding 'binary concept' especially when it does involve with such this '>>'.
What does it mean or to say in word?
Below I paste codes for binary gdc computation.... please advise...many thanks.
Please give me some pointer where should I refer regarding 'binary concept' especially when it does involve with such this '>>'.
What does it mean or to say in word?
Below I paste codes for binary gdc computation.... please advise...many thanks.
Code:
private static long binaryAlgorithm (long u, long v) { long gcd = 0; long k = 0; long t = 0; u = Math.abs (u); v = Math.abs (v); // Find power of 2 while (true) { if (isOdd (u)) { break; } if (isOdd (v)) { break; } k++; [B] u = u >> 1; v = v >> 1;[/B] }
Comment