搜索资源列表
horse1
- 首先从起始点开始看它的八个方向中有几个方向可以走,假如有5个方向可走,再看这5个位置下一步分别有几步可走,把这个值赋给一个数组s[],再对数组进行从小到大排序,然后从5步中s[]值最小的走,依次递归,每次从s[]值最小的走,如果步骤号step等于棋盘规格m*n,则说明全部走完了;如果遇到无路可走的情况,step--,退回到上一步,当一直退到起始点时候,说明无法全部遍历。
erchashu
- 1、 利用先序遍历和层次遍历的结果建立二叉树 2、 实现二叉树的层次遍历 3、 统计二叉树叶子结点的个数(递归)。 4、 将二叉树左右子树相互交换(递归) 5、 判断二叉树是不是二叉排序树。 6、 完成二叉排序树的插入、删除和平衡操作。 -1, the use of first order to traverse and level traversal of the results established binary tree 2 and realize the b
java_applet
- Applet类与Applet小程序,数组 向量 字符串 递归 排序-Applet applet Applet class, recursive sort string array vector
java_tree
- 自己开发的可扩展java树结构,包括节点排序,遍历(非递归算法),查找(单节点,全路径匹配),添加删除等。排序方式,节点匹配方式均可通过接口可扩展,本代码是自己开发的一个cms项目中的一部分,可独立使用-Self-developed scalable java tree structure, including nodes sorting, traversal (non-recursive algorithm), find (single node, the full path to match
123456789
- 归并排序(merge sort)体现了分治的思想,即将一个待排序数组分为两部分,对这两个部分进行归并排序,排序后,再对两个已经排序好的数组进行合并。这种思想可以用递归方式很容易实现。归并排序的时间复杂度为O(nlogn),空间复杂度为O(n)。-Merge sorting (merge sort) embodies the idea of partition, about an array to be sorted into two parts, the two parts merge sort
AllSort
- 使用算法实现全排序,这是一个递归算法,说难不难,说简单不简单-Using all sort algorithm, which is a recursive algorithm, that is difficult or not, that simple is not simple
DataStructuresAndAlgorithms(JAVA)
- 此书从介绍JAVA基础到数据结构与算法基础,并结合JAVA给予实例演习,从线性表,链式表,栈与队列,递归,讲到树,图,并以JAVA实例演习各种查找,排序算法.实为一本难得的好书,现与大家共同分享.-From the introduction to the book based on JAVA based data structures and algorithms, and give examples with JAVA exercises, from the linear form, chai
cx6
- java中的工具类和一些算法,如递归,排序,查找,链表,队列,堆栈等-java classes and some of the tools in the algorithms, such as recursion, sorting, searching, linked lists, queues, stacks, etc.
Java_11183501
- 《Java数据结构和算法》(第2版)介绍了计算机编程中使用的数据结构和算法,对于在计算机应用中如何操作和管理数据以取得最优性能提供了深入浅出的讲解。全书共分为15章,分别讲述了基本概念、数组、简单排序、堆和队列、链表、递归、进阶排序、二叉树、红黑树、哈希表及图形等知识。-" Java data structures and algorithms" (2) describes computer programming, data structures and algorithms
QuickSort
- 快速排序,递归,不稳定的排序,栈会不溢出,可运行大数量的排序-Quick sort, recursive, an unstable sort, the stack will not overflow, you can run a large number of sorting
javademo05
- 几个java的算法,包括了递归,还有排序的算法!-Several of java algorithms, including recursive sort algorithm!
merge
- 数据结构中的归并排序算法,非递归效率更高。-Merge sort algorithm data structure, efficient non-recursive.
testfi
- 合并排序,是java实现的。算法思想是递归和分治。-Merge sort java implementation. The algorithm the thinking is recursive divide-and-conquer.
quicksort
- 快速排序算法及其优化,在序列长于某个给定值时递归采用快速排序,小于这个值时用插入排序代替快排,以优化快速排序的性能,同时程序记录优化前后的程序耗时给出比较。-Quick sort algorithm and optimization, in sequence longer than a given value recursively using quick sort, is less than this value quickly replaced by rows of insertion so
SortQuik
- 经典排序之快速排序的JAVA实现(递归), 随即输入30个数对其进行排序。-Classic sort of quick sort JAVA realization (recursively), then enter the number 30 sort them.
array
- 快速排序是采用了递归的思想,首先找一个基准点(一般为第一个数),通过一次递归将要排序的数据分成两部分,其中一部分的所有数据比基准点小,另外一部分的所有数据都比基准点大,然后分别对两部分数据进行相同的处理,最后得到一个有序的数列。-Quicksort is recursive to the idea, first of all to find a reference point (usually the first number), by the recursive data to be sort
QuickSorts
- 实现 快速排序,通过 拿到的 数组 首元素 作为 对比对索引象,交替 从后向前比较小于其值的元素,和从前向后比较 大于 其值的 元素,最终拿到中间 索引,将小于 其值 和 大于其值的元素 分开,这样递归调用 完成快速排序-implements quicksort in array or an Collection ,
QuickSort
- 快速排序法通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行,以此达到整个数据变成有序序列。-By sorting the data to be sorted into two separate parts, one part of all the data than the other part of all the data is small, and then press