//快速排序void Quick_Sort(int *a,int low,int high){ int Partition(int *a,int low,int high); int mid; if(lowmid); if(i>=j)break; temp=a[i]; a[i]=a[j]; ...
分类:
编程语言 时间:
2014-11-15 21:41:57
阅读次数:
347
算法分析:数据元素有序,设3个变量low、mid、high保存数组元素的开始、中间以及末尾序号, 将Key值与a[mid]比较,不断缩小查找范围,直至查找成功或者失败。代码: 1 while(low x) 7 high=mid-1; //"mid-1" → "-" ...
分类:
编程语言 时间:
2014-11-15 16:41:19
阅读次数:
124
"高可用方案工具包" high availability toolkit 1.2 发布了。version 1.2 新增了 负载均衡 load balance 的技术实现。...
分类:
其他好文 时间:
2014-11-15 11:30:38
阅读次数:
177
available参数在man info help中均无此参数,其实参数为:activate
写此此,值得用的人注意。
available 参数实为:
-a, --activate [a|e|l]{y|n}
Controls the availability of the logical volumes for use. Communicates with ...
分类:
其他好文 时间:
2014-11-14 15:41:08
阅读次数:
276
ios7新增加的icon尺寸:76 x 76:Size for iPad 2 and iPad mini (standard resolution)120 x 120 :Size for iPhone and iPod touch (high resolution)152 x 152:Size fo...
分类:
移动开发 时间:
2014-11-14 09:14:27
阅读次数:
287
iOS Drawing ConceptsHigh-quality graphics are an important part of your app’s user interface. Providing high-quality graphics not only makes your app ...
分类:
移动开发 时间:
2014-11-13 22:25:27
阅读次数:
522
1、复制概述1.1、复制解决的问题数据复制技术有以下一些特点:(1) 数据分布(2) 负载平衡(load balancing)(3) 备份(4) 高可用性(high availability)和容错1.2、复制如何工作从高层来看,复制分成三步:(1) master将改变记录到二进制日志(binary...
分类:
数据库 时间:
2014-11-12 01:54:30
阅读次数:
397
前言: Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。HDFS有高容错性的特点,并且设计用来部署在低廉的(low-cost)硬件上;并且它提供高吞吐量(high throughput)来訪问应用程序的数据,适合那些有着超大数据集....
分类:
其他好文 时间:
2014-11-11 14:00:31
阅读次数:
305
安装好android的adt以后重启eclipse,但是没有创建AVD的图标:解决方法:1. 先检查ADT是否已经安卓成功2. Windows--- Customize Perspective -- 选择 -- Command Groups Availability 找到 Android SDK ....
分类:
移动开发 时间:
2014-11-08 22:05:24
阅读次数:
255
web 开发中的网络基础, 包括时延的概念,TCP 建立过程和优化, 慢起动, TLS 的握手和优化...
分类:
Web程序 时间:
2014-11-08 16:52:16
阅读次数:
378