| |
| | [No title] |
 | | ;; mergesort is the top-level function...it takes a list of numbers ;; to be sorted, splits the list into two equal-sized (plus or minus 1) ;; sublists, calls mergesort on the two sublists recursively, and then ;; calls merge to merge the resulting sorted sublists. |
 | | What you saw with mergesort last week was another illustration of how one uses abstraction to go from a design in some off-the-cuff high-level design language to an actual implementation in Scheme. |
 | | Initially, we started with an English-language description of mergesort, and we designed a working implementation of the sorting algorithm from the top down breaking off a piece of the problem, designing a solution to that little piece, and abstracting away the rest of that problem. |
| www.cc.gatech.edu /classes/AY2000/cs1311x/lectureFall2000/lecture11.html (4021 words) |
|