摘要: using System;namespace NET.MST.Thirtennth.BinarySearch{ class BinarySearch { /// <summary> /// 测试二分查找算法 /// </summary> static void Main(string[] args) { //测试序列,实际系统中,如果得到乱序序列则应该先使用排序算法进行排序 int[] data = new int[] { 0, 2, 3, 4, 6, 7, 8, 10 }; Console.WriteLine("测试序列为"); for (int 阅读全文
posted @ 2011-05-22 19:35 brainmao 阅读(337) 评论(0) 推荐(0) 编辑