PDA

View Full Version : Finding the minimum in an array



shahsaurabh1990
02-18-2013, 01:23 AM
I have used reduction for the calculation of the minimum array; but the problem is that the size of an array should be in power of 2; so if a number is not in power of 2 other than padding wat else can we do??
for example suppose if the number is 64
6 iterations will be used and suppose if the number is 65 padding has to be done to make the number in power of 2