2009年4月27日
摘要: SQLServer内核架构剖析 我们做管理软件的,主要核心就在数据存储管理上。所以数据库设计是我们的重中之重。为了让我们的管理软件能够稳定、可扩展、性能优秀、可跟踪排错、可升级部署、可插件运行,我们往往研发自己的管理软件开发平台。我们总是希望去学习别人的开发平台(如用友或金蝶或SAP),但我们却总是感叹管理软件业务处理细节繁多,而数据库管理软件却简单的SELECT、INSERT、DELETE、UPDATE四个命令就搞定。我们多希望有一天能做出一个架构,也可以这么简单就搞定管理软件。我们往往研究别人的架构,却忘记了我们身边我们最熟悉的数据库的架构。所以,今天,我想带领大家一起剖析一下数据库的架构 阅读全文
posted @ 2009-04-27 21:53 WQL.NET 阅读(161) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithms{ class ShellSorter { public void Sort(int[] arr) { int inc; for (inc = 1; inc <= arr.Length / 9; inc = 3 * inc + 1) ; for (; inc > 0; inc /= 3) { for (int i = inc + 1; i <= arr.Length; i += inc) { int t 阅读全文
posted @ 2009-04-27 20:44 WQL.NET 阅读(124) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithms{public class SelectionSorter { private int min; public void Sort(int[] arr) { for (int i = 0; i < arr.Length-1 ; i++) { min = i; for (int j = i + 1; j < arr.Length; j++) { if (j - 1 > 0) { if (arr[j - 1 阅读全文
posted @ 2009-04-27 20:43 WQL.NET 阅读(158) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithms{ class QuicktionSorter { private void Swap(ref int i, ref int r) { int temp; temp = r; r = i; i = temp; } public void Sort(int[] list, int low, int high) { int pivot; int i, r; int mid; if (high <= low) { ret 阅读全文
posted @ 2009-04-27 20:42 WQL.NET 阅读(169) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithms{ class InsertionSorter { public void Sort(int[] arr) { for (int i = 1; i < arr.Length; i++) { int t = arr[i]; int j = i; while ((j > 0) && (arr[j - 1] > t)) { arr[j] = arr[j - 1]; --j; } arr[j] 阅读全文
posted @ 2009-04-27 20:41 WQL.NET 阅读(91) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace SortAlgorithms{ class EbullitionSorter { public enum Derection {litter,big }; public void Sort(int[] arr) { int i, j, temp; bool done = false; j = 1; while ((j < arr.Length) && !(done)) { done = true; for (i = 0; i 阅读全文
posted @ 2009-04-27 20:36 WQL.NET 阅读(155) 评论(0) 推荐(0) 编辑