摘要: Quicksort, like merge sort, is based on the divide-and-conquer paradigm introduced in Section 2.3.1. Here is the three-step divide-and-conquer process for sorting a typical subarray A[p ‥ r].Divide: Partition (rearrange) the array A[p ‥ r] into two (possibly empty) subarrays A[p ‥ q - 1] and A[q + 1 阅读全文
posted @ 2013-10-29 15:45 Pacific-hong 阅读(129) 评论(0) 推荐(0) 编辑