资源说明:Groovy implementations of various algorithms & data structures from "Algorithms" (Cormen, Leiserson, Rivest, Stein).
 **Algorithms** This project contains lots of [Groovy](http://groovy.codehaus.org) implementations of various problems and algorithms from [Introduction to Algorithms by Cormen, Leiserson, Rivest, Stein](http://en.wikipedia.org/wiki/Introduction_to_Algorithms) (CLRS). The goal is to create clean, readable, and runnable versions of the algorithms presented. It's easier to learn an algorithm when you can step through it line by line with a debugger! Scared by Groovy? Don't be, it's just an extension of Java that lets us remove lots of the clutter and boilerplate code that would weigh down the presentation of the algorithms. If you can write Java code, you can write Groovy code. Enjoy! Table of Contents ----------------- - **Chapter 2: Getting Started** See [InsertionSort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/InsertionSort.groovy), [SelectionSort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/SelectionSort.groovy), [MergeSort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/MergeSort.groovy) - **Chapter 4: Divide and Conquer** See [Max Subarray](https://github.com/phillco/Algorithms/blob/master/src/algorithms/MaxSubArray.groovy) - **Chapter 6: Heapsort** See [Heap](https://github.com/phillco/Algorithms/blob/master/src/algorithms/Heap.groovy) and [Heap Sort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/Heap.groovy) - **Chapter 7: QuickSort** See [QuickSort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/QuickSort.groovy) and [RandomizedQuickSort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/RandomizedQuickSort.groovy). - **Chapter 8: Sorting in Linear Time** See [Counting Sort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/CountingSort.groovy) and [Radix Sort](https://github.com/phillco/Algorithms/blob/master/src/algorithms/RadixSort.groovy) - **Chapter 15: Dynamic Programming** See [Rod Cutting](https://github.com/phillco/Algorithms/blob/master/src/algorithms/RodCutting.groovy), [Matrix Chaining](https://github.com/phillco/Algorithms/blob/master/src/algorithms/MatrixChaining.groovy), [Edit Distance](https://github.com/phillco/Algorithms/blob/master/src/algorithms/AdvancedEditDistance.groovy), and [DNA Alignment](https://github.com/phillco/Algorithms/blob/master/src/algorithms/DnaAlignment.groovy).
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
English
