public abstract DocsEnum docs(Bits liveDocs, DocsEnum reuse, int flags) throws IOException;
经过一天的研究,总算有些进展. 希望大家提出各种意见,欢迎拍砖! lucene版本:4.3.1
小插曲,原本想写写spetial search,但是研究研究着,就了解到了termFilte...
分类:
Web程序 时间:
2015-01-05 18:44:34
阅读次数:
159
Adjacent Bit Counts
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
For a string of n bits x1, x2, x3, …, xn, the adjacent bit count of the string is given by fun(x) = x1*x2 + x2*x3 + x3*x 4 + … + ...
分类:
其他好文 时间:
2014-12-26 11:10:26
阅读次数:
199
作死去学了FFT。。。
系统自带的complex真是慢。。。比手写的慢了整整0.8s。。。于是果断手写了一发Complex的模板。。。。
原型:
templateclass Complex;
使用方法:
using namespace PoPoQQQ_Complex;
Complex x;cin>>x;
x+=Complex(1,0);
x-=Complex(0,1);
x*=C...
分类:
其他好文 时间:
2014-12-25 14:41:50
阅读次数:
195
1 #include 2 #include 3 #include 4 #include 5 6 7 //行宽度 8 #define ROW_LEN 38 9 10 11 //比特位域结构 12 typedef struct bits bits; 13 struct...
分类:
编程语言 时间:
2014-12-24 20:08:13
阅读次数:
208
今天抓起Stack的模板各种改了一发。。。经过各种无限CE之后终于把这BT的模板搞出来了。。。
又学了一堆关于模板的知识- - 主要就是结构体里面的static变量要在外面声明之后才可以使用- - 否则报错- -
原型:
templateclass Stack;
使用方法:
using namespace PoPoQQQ_Stack;
int main()
{
Stack s;...
分类:
其他好文 时间:
2014-12-23 21:13:57
阅读次数:
148
1.文件压缩的原理:目前,计算机系统中都是使用bytes单位来计量的,不过,事实上,计算机最小的计量单位应该是bits才对,此外,我们也知道1byte=8bits。即每个byte当中会有8个空格,而每个空格可以是0或1,所以,如果我们要记录1这个数字,那么就会将另外的7个空格浪费掉。而压..
分类:
系统相关 时间:
2014-12-22 02:08:29
阅读次数:
220
在SCVMM中使用模板来部署虚拟机的时候,有很长的一段时间用于将虚拟机模板的VHD从SCVMM库中复制到Hyper-V主机。由于默认情况是使用BITS进行虚拟机VHD文件的复制,所花费的时间较长。如果改变VHD的文件的传输模式之后,会大大的减少VHD文件复制的时间。首先确认SCVMM库服务器和H..
分类:
其他好文 时间:
2014-12-18 06:57:11
阅读次数:
143
Reverse bits of an unsigned integer.typedef unsigned int uint;uint swapBits(uint x, uint i, uint j){ uint lo = ((x >> j) & 1); uint hi = ((x >> ...
分类:
其他好文 时间:
2014-12-15 18:56:51
阅读次数:
154
Access to a?larger general-purpose register file with 31 unbanked registers (0-30), with each register extended to 64 bits. 31个通用寄存器,外加一个r31作为zero register。 Floating point and Advan...
分类:
其他好文 时间:
2014-12-10 16:35:06
阅读次数:
242
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 sequence of...
分类:
其他好文 时间:
2014-12-04 08:47:00
阅读次数:
168