摘要:
5.1-1:Since we can compare between any two elements, we know the total order on the ranks of the candidates.5.1-2:RANDOM(a,b)%range = b - a;%d = the number of binary bits %range hasdofor(%i = 1 to %d):%i th bit of integer %res = rand(0,1);while(%res > %range);return (a + %res);Each time of while 阅读全文
posted @ 2011-02-16 00:56
songyy
阅读(476)
评论(0)
推荐(0)
浙公网安备 33010602011771号