- 博客(6)
- 收藏
- 关注
原创 C# 两路归并排序
两路归并排序/// /// 对目标数组进行归并排序 /// 与QuickSort的分治比较,感受递归 /// /// 目标数组 /// 暂存数组 /// 当前部分左位置 /// 当前部分右位置 /// 当前部分中间位置 public static void TwoWayMergeSort(int[] dest, int[] tempDest, int left, int
2006-07-18 16:13:00
653
转载 C# 快速排序
快速排序public static void QuickSort(ref int[] dest, int beg, int end, ref int swapTimes) { if(beg >= end) return; int pivot = (beg + end) / 2; Swap.Swaper(ref dest[pivot], ref dest[end]); i
2006-07-18 15:56:00
479
转载 C# shell排序
shell排序/// /// shell sort /// /// 待排序数组 /// 移动元素次数 public static void ShellSort(ref int[] dest, ref int swapTimes) { for(int delta = dest.Length / 2; delta >= 0; delta /= 2) { if(delt
2006-07-18 15:54:00
604
转载 C# 插入排序
插入排序/// /// 原始插入排序 /// /// 目标数组 /// 交换次数 public static void InsertSort(ref int[] dest, ref int swapTimes) { //其实根本没必要一个dest.length数组,使得空间复杂度增大 //只需一个int零时变量即可,当前要排序的元素腾出即可 ArrayList de
2006-07-18 14:40:00
608
转载 C# 冒泡排序
/// /// bubbleSort; /// /// /*理解其实程序就是思路的复述而已*/ /// /// 目标数组 /// 交换次数 public static void BubleSort(ref int[] desti, ref int swapTimes) { int destiLen = desti.Length; /******各重循环各
2006-07-18 14:36:00
670
转载 你期待已久的ASP.NET Atlas(一)[翻译]
原文地址:http://msdn.microsoft.com/msdnmag/issues/06/07/AtlasAtLast/ 近来开始看Atlas,体验了一下感觉挺不错的,先翻篇文章奉上,有翻的不好甚至有误的地方请大家指正,共同提高!这篇文章讨论以下几个方面:1.ASP.NET "Atlas"的介绍2.Atlas的体系结构3.客户端和服务器端的控件4.Atlas和Web服
2006-07-18 14:25:00
1378
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人