1.1 信息就是位 + 上下文 程序的生命周期从源程序开始——这是一个有着某种扩展名(比如C源程序的文件扩展名为.c,java源程序的文件扩展名为.java,c++源程序的扩展名为.cpp等等)的文本文件。这些文本文件由一个个文本字符构成,而每个文本字符又由8个bit来构成。 数据有不同的数据对象,...
分类:
编程语言 时间:
2014-11-05 14:32:20
阅读次数:
199
一、[root@wuy2 etc]# getconf LONG_BIT[root@wuy2 etc]# getconf WORD_BIT(32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系统中可用"getconf WORD...
分类:
系统相关 时间:
2014-11-05 12:21:16
阅读次数:
284
先是概念的理解: Unicode/UCS的压缩形式--UTF8出现了,套用官方网站的首句话『UTF-8 stands for Unicode Transformation Format-8. It is an octet (8-bit) lossless encoding of Unicode ch...
分类:
Web程序 时间:
2014-11-05 10:39:02
阅读次数:
202
BloomFilter 的原理和应用Bloom Filter 原理Bloom Filter是一种空间效率很高的随机数据结构,它的原理是,当一个元素被加入集合时,通过K个相互独立的Hash函数将这个元素映射成一个位阵列(Bit array)中的K个点,把它们置为1。检索时,我们只要看看这些点是不是都是...
分类:
其他好文 时间:
2014-11-04 19:11:58
阅读次数:
284
问题:想写一个小程序可读取图片的色深(bit-depth)。网上有一些软件可完成这个功能,但是我想把程序做成一个可移植的插件。本想用c写的,但实在麻烦,最后选择java,与很多方法不用自己写,速度快。最后打包成一个jar包,只要装了jdk就可以在控制台运行。我用的是MYECLIPSE,步骤如下:1....
分类:
编程语言 时间:
2014-11-04 18:51:30
阅读次数:
272
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-11-04 18:48:23
阅读次数:
187
CREATE FUNCTION D_ByteExchangeS_Byte(@str NVARCHAR(4000), --要转换的字符串@flag bit --转换标志,0转换成半角,1转换成全角)RETURNS nvarchar(4000)ASBEGIN DECLARE @pat nvarchar(...
分类:
数据库 时间:
2014-11-04 12:52:58
阅读次数:
173
题目描述:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the s...
分类:
其他好文 时间:
2014-11-04 11:09:10
阅读次数:
135
Heavy TransportationTime Limit: 3000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:179764-bit integer IO format:%lld Java class...
分类:
其他好文 时间:
2014-11-03 16:11:25
阅读次数:
244
Median Weight BeadTime Limit: 1000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:197564-bit integer IO format:%lld Java class n...
分类:
其他好文 时间:
2014-11-03 14:29:19
阅读次数:
222