摘要:
2-1:2-2:a) loop invariant,initial condition, termination condition.b) A[j] is thesmallest element in A[j .. length[A]]. initialization: at the start of the loop, j = length[A].It's the smallest element in A[length[A] ~ length[A]] (because it'sthe only element). maintenance: if j = k is the s 阅读全文
posted @ 2011-07-01 16:18
songyy
阅读(729)
评论(0)
推荐(0)
浙公网安备 33010602011771号