一页孤舟

学海无涯

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2008年10月27日

摘要: 冒泡排序: Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 public static void BubbleSort(int[] list) 2 { 3 for (int i = l... 阅读全文
posted @ 2008-10-27 09:07 LinLi 阅读(278) 评论(0) 推荐(0)

摘要: 希尔排序基本思想 基本思想: 先取一个小于n的整数d 1 作为第一个增量,把文件的全部记录分成d 1 个组。所有距离为d l 的倍数的记录放在同一个组中。先在各组内进行直接插人排序;然后,取第二个增量d 2 1 public static void ShellSort(int[] list) 2 { 3 int h = 1; 4 ... 阅读全文
posted @ 2008-10-27 08:41 LinLi 阅读(772) 评论(1) 推荐(0)

2008年10月25日

摘要: 实现了如下基本功能: 1。添加节点 2。删除节点 3。查找最小值 4。查找最大值 5。中序遍历 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Collections.... 阅读全文
posted @ 2008-10-25 12:23 LinLi 阅读(670) 评论(0) 推荐(0)

2008年10月24日

摘要: 今天看到了两个洗牌算法,用c#实现了下: 第一个: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 public void Shuffle() 2 { 3 4 in... 阅读全文
posted @ 2008-10-24 22:05 LinLi 阅读(4116) 评论(0) 推荐(0)

2008年10月22日

摘要: 链表含一个头节点,算法很简单,主要注意空表时的操作! Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Collections.Generic; 3using System.... 阅读全文
posted @ 2008-10-22 16:54 LinLi 阅读(413) 评论(0) 推荐(0)

摘要: 一个循环单链表的c#实现,感觉写起来比用c++简单些哦,不过基本思路完全一样。 Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Collections.Gen... 阅读全文
posted @ 2008-10-22 15:42 LinLi 阅读(1142) 评论(0) 推荐(0)

2008年10月16日

摘要: 最近在读MICHAEL MCMILLAN的《c#data structure》一书,发现书后习题并没有解答,于是自己做了下,很少基于c#写数据结构,所以觉得还是很有意思的。好,闲话少说,进入题目. 题目: According to legend, the first century Jewish historian, Flavius Josephus,was captured along wit... 阅读全文
posted @ 2008-10-16 09:50 LinLi 阅读(584) 评论(0) 推荐(0)

摘要: 希望可以记录自己学习、生活的点滴,给自己留下回忆,同时和朋友一起分享! 阅读全文
posted @ 2008-10-16 09:10 LinLi 阅读(114) 评论(0) 推荐(0)