散列 散列表的一般实现叫散列。是一种以常数平均时间执行插入、删除、查找的技术。理想的散列表结构是一个包含关键字具有固定大小的数组。典型情况是,一个关键字就是一个带有相关值的字符串。把表大小记MaxSize,通常使表在0-MaxSize之间变化。每个关键字都被映射到0-MaxSize之间的某个单元中。 ...
分类:
其他好文 时间:
2016-07-09 00:45:06
阅读次数:
241
先调整分辨率,分辨率可以自己设定一个值,大于的就缩小到这分辨率,小余的就保持原本分辨率。然后在根据最终大小来设置压缩比,比如传入maxSize = 100k,最终计算大概这个大小的压缩比。基本上最终出来的图片数据根据当前分辨率能保持差不多的大小同时不至于太模糊,跟微信,微博最终效果应该是差不多的,代 ...
分类:
Web程序 时间:
2016-07-06 14:38:23
阅读次数:
129
1 线性表的顺序存储结构,是指用一段地址连续的存储单元依次存储线性表的数据元素。既然线性表的每个数据元素类型都相同,所以可以用一维数组来实现顺序存储结构,即把第一个元素存储在下标为0的位置上,接着把线性表相邻的元素存储在数组中相邻的位置。2 线性表顺序存储的结构代码 #define MAXSIZE ...
分类:
其他好文 时间:
2016-06-25 23:08:41
阅读次数:
133
创建表空间 create tablespace bdccslogging datafile 'D:\oracle\product\10.2.0\oradata\bdccs\bdccs.dbf'size 50mautoextend on next 50m maxsize 20480mextent ma ...
分类:
数据库 时间:
2016-06-24 14:50:43
阅读次数:
179
#include <iostream> using namespace std; #define MAXSIZE 30 void FindWater(int ID[], int len,int water[]) { int counter[3]; //计数器 counter[0]=counter[1 ...
分类:
其他好文 时间:
2016-06-23 14:13:25
阅读次数:
120
#include <iostream> using namespace std; #define MAXSIZE 20 void FindWater(int ID[],int len,int &water) { int counter=0; //计数器 for(int i=0;i<len;i++) ...
分类:
其他好文 时间:
2016-06-23 14:10:31
阅读次数:
163
LruCache
初始化 /**
* @param maxSize for caches that do not override {@link #sizeOf}, this is
* the maximum number of entries in the cache. For all other caches,
* this is the max...
分类:
移动开发 时间:
2016-06-22 15:53:56
阅读次数:
346
1.创建表空间 create tablespace example_tablespace datafile 'e:\****.dbf' size 10m reuse autoextend on next 1m maxsize unlimited; 2.创建用户,指定表空间,临时表空间 create ...
分类:
数据库 时间:
2016-06-22 10:39:55
阅读次数:
190
代码来自:GitHub - obscure76/graph: c++ graphs。
graph.h文件内容如下:
#include
#include
#include
#include
#include
#include
#include
#include
#define MAXSIZE 100
using namespace std;
class Vertex
{
privat...
分类:
编程语言 时间:
2016-06-21 09:24:51
阅读次数:
207
OOM异常 堆内存用于存储实例对象,当程序不断创建对象,并且对象都有引用指向,那么垃圾回收机制就不会清理这些对象,当对象多到挤满堆内存的上限后,就产生OOM异常。Android系统为每个应用程序使用的内存设置了一个上限。这个上限值可以用下面的方法取得: long maxSize = Runtime. ...
分类:
系统相关 时间:
2016-06-19 06:46:48
阅读次数:
252