repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/sa/ds/bwt_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt_aux.c
Ver 1.0 3-mar-2004
Functions for computing and transforming various representations
of text and suffix array: t/sa/rank_next/rank_prev/bwt
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free so... | 9,373 | 26.014409 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/sa/ds/bwt_aux.h | #define _BW_ALPHA_SIZE 256
typedef unsigned char uchar;
typedef unsigned char uint8;
typedef int int32;
// ---- struct containing the (uncompressed) bwt
typedef struct {
uchar *bwt;
int size;
int eof_pos;
} bwt_data;
// prototypes of bwt procedures defined in bwtlcp.a
void _bw_sa2bwt(uchar *t, int32 n, int3... | 912 | 31.607143 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/OLD_Fari/compressor.h | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "interfazTextCompressorDocs.h"
#define COMPRESSED_REPRESENTATION_EXT_FILE "compRepresentation"
typedef struct {
unsigned int *docBeginnings;
unsigned int numdocs;... | 2,416 | 32.109589 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/OLD_Fari/compressor.c | #include "compressor.h"
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a collection ... | 4,656 | 33.753731 | 103 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/OLD_Fari/bitrankw32int.h | /* bitarray.h
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foun... | 2,028 | 29.283582 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/OLD_Fari/RepairPost.h |
#ifndef REPAIRDECOMPRESSOR
#define REPAIRDECOMPRESSOR
#include <iostream>
#include <cassert>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "bitrankw32int.h"
#include "basic.h"
using namespace std;
class RepairPost {
public:
unsigned char *text;
unsigned long textSize;
unsigned long b... | 1,529 | 21.173913 | 89 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextLZEND64bit/OLD_Fari/interfazTextCompressorDocs.h |
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a collection of text documents
who... | 2,009 | 39.2 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/parseparamsII.c | /***********************************************************************************/
/*** FUNCTIONS USED FOR PARSING PARAMETERS FROM COMMAND LINE ***********************/
/* Three function to variables to manage parameters */
static bool is_delimeter_II(char *delimiters, char c) {
int i=0,len_delimiters=strlen(deli... | 1,529 | 33.772727 | 107 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/scdc.h |
////////////////// Dense Codes ////////////////
#ifndef byte
#define byte unsigned char
#endif
#ifndef uint
#define uint unsigned int
#endif
#ifndef ulong
#define ulong unsigned long
#endif
#include "valstring.h"
void initializeSC_baseTable (uint s);
uint decodeETDC (byte *etdc, register uint pos, uint *num)... | 1,029 | 28.428571 | 132 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/horspool.h | /* Searches using Horspool's algorithm adapted to
search inside a text compressed with End-Tagged Dense Code.
Lightweight Natural Language Text Compression: Information Retrieval 2006
Programmed by Antonio Fari�a.
Author's contact: Antonio Fari�a, Databases Lab, University of
A Coru�a. Campus de Elvi�a s/n. Spain ... | 1,968 | 30.758065 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/scdc.c | #include "scdc.h"
////////////////// Dense Codes ////////////////
uint SS,CC;
uint TABLABASE[5]; // = {0,128,16512,2113664,270549120};
void initializeSC_baseTable (uint s){
uint c = 256 - s;
TABLABASE[0] = 0;
TABLABASE[1] = s;
TABLABASE[2] = TABLABASE[1] + s * c;
TABLABASE[3] = TABLABASE[2] + s * c*c;
TABLAB... | 2,760 | 26.068627 | 131 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/defValues.h | #ifndef DEFVALUES_INCLUDED
#define DEFVALUES_INCLUDED
//#define FREQ_VECTOR_AVAILABLE //--> COUNT uses wcsa->freqs[] for 1 word and getPositions() for the malloc().
//-->otherwise... getPositions() is needed for count: malloc (wcsa->maxNumOccs);
#define MAX_SIZE_OF_WORD 32768 //255 //size of word
//f... | 1,135 | 27.4 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/basics.h |
// Basics
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
// Includes
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
// Data types
#ifndef byte
#define byte unsigned c... | 2,381 | 21.903846 | 61 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/iisvsETDCBlock.c | /*************************************************************************************************/
int getPositions (void *index, uchar *pattern, ulong length, uint *ids, uint nids, uint **list, uint *len) {
int retval;
uint i;
twcsa* wcsa = (twcsa *) index;
//intersecting lists
uint *candDocs;
uint numcand... | 5,708 | 25.188073 | 132 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/horspool.c |
#include "horspool.h"
/*------------------------------------------------------------------
Initializes Horspool's d-vector (jumps for each letter)
------------------------------------------------------------------*/
void inicialize_d(byte *code, unsigned int len, byte *d) {
unsigned int c,k;
for (c=0;c<256;c... | 2,029 | 25.363636 | 125 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/errors.c |
/*////////////////
//Error handling//
////////////////*/
char *error_index(int e){
static char err[100];
switch(e) {
case 0: strcpy(err, "No error"); break;
case 1: strcpy(err, "Out of memory"); break;
case 2: strcpy(err, "The text must end with a \\0"); break;
case 5: strcpy(err, "You can't free... | 999 | 36.037037 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/utils/ii.h |
/** **********************************************************************/
/** Saving/Loading the index to/from disk **/
/** **********************************************************************/
// * loads the source text into memory
int loadTextInMem (byte **text, ulong *size, ch... | 3,036 | 38.960526 | 130 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/config.h | /* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if the compiler supports __builtin_ctz and friends. */
#define HAVE_BUILTIN_CTZ 1
/* Define to 1 if the compiler supports __builtin_expect. */
#define HAVE_BUILTIN_EXPECT 1
/* Def... | 3,653 | 28 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy-internal.h | // Copyright 2008 Google Inc. All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and ... | 5,460 | 35.165563 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy.h | // Copyright 2005 and onwards Google Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the follo... | 8,640 | 45.708108 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy-stubs-public.h | // Copyright 2011 Google Inc. All Rights Reserved.
// Author: sesse@google.com (Steinar H. Gunderson)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the abov... | 3,173 | 31.060606 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy-c.h | /*
* Copyright 2011 Martin Gieseking <martin.gieseking@uos.de>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of c... | 5,393 | 37.805755 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy-test.h | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and ... | 17,002 | 28.164666 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy-sinksource.h | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and ... | 4,931 | 34.73913 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/snappy-stubs-internal.h | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and ... | 15,311 | 30.121951 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/snappy-1.1.1/testdata/fields.c | #ifndef lint
static char Rcs_Id[] =
"$Id: fields.c,v 1.7 1994/01/06 05:26:37 geoff Exp $";
#endif
/*
* $Log: fields.c,v $
* Revision 1.7 1994/01/06 05:26:37 geoff
* Get rid of all references to System V string routines, for portability
* (sigh).
*
* Revision 1.6 1994/01/05 20:13:43 geoff
* Add the max... | 11,150 | 24.8125 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/simdbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
#ifndef SIMDBITPACKING_H_
#define SIMDBITPACKING_H_
#include "common.h"
void simdpack(const uint32_t * __restrict__ in,__m128i * __restrict__ out, uint32_t bit);
void simdpackwithoutmask(c... | 859 | 39.952381 | 118 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/stringutil.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef STRINGUTIL_H_
#define STRINGUTIL_H_
#include "common.h"
#include "util.h"
using namespace std;
vector<string> split(const string& str, const string& del) {... | 730 | 23.366667 | 62 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/bitpackingunaligned.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef BITPACKINGUNALIGNED
#define BITPACKINGUNALIGNED
#include "common.h"
using namespace std;
typedef uint8_t byte;
const byte * fastunalignedunpack_8(const byte ... | 1,273 | 52.083333 | 122 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/csv.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef CVSTOMAROPUCVS_H_
#define CVSTOMAROPUCVS_H_
#include "common.h"
using namespace std;
enum {
INCREASINGCARDINALITY, DECREASINGCARDINALITY
};
/**
* Comma... | 9,905 | 31.058252 | 87 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/compositecodec.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef COMPOSITECODEC_H_
#define COMPOSITECODEC_H_
#include "common.h"
#include "util.h"
#include "codecs.h"
/**
* This is a useful class for CODEC that only compre... | 2,190 | 29.859155 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/synthetic.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
#ifndef SYNTHETICDATA_H_
#define SYNTHETICDATA_H_
#include "common.h"
#include "util.h"
#include "mersenne.h"
#include "memutil.h"
using namespace std;
vector<uint32_t,cacheallocator> generateArray(uint32_t N, ... | 5,724 | 27.914141 | 116 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/maropuparser.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef MAROPUPARSER_H_
#define MAROPUPARSER_H_
#include "common.h"
using namespace std;
/**
* This is just a bit of code to parse the binary files provided by the... | 2,128 | 23.755814 | 71 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/cpubenchmark.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef CPUBENCHMARK_H_
#define CPUBENCHMARK_H_
#include "common.h"
#if defined( __corei7__ ) // __amd64__ is untested
// start and stop are as recommended by
// G... | 2,975 | 27.615385 | 128 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/memutil.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef MEMUTIL_H_
#define MEMUTIL_H_
#include "common.h"
template<class T, size_t alignment>
T * moveToBoundary(T * inbyte) {
return reinterpret_cast<T *> ((re... | 3,407 | 28.128205 | 100 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/newpfor.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
/* Based on code by
* Takeshi Yamamuro <linguin.m.s_at_gmail.com>
* Fabrizio Silvestri <fabrizio.silvestri_at_isti.cnr.it>
* Rossano Venturini <ross... | 9,410 | 29.654723 | 108 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/simdbinarypacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDBINARYPACKING_H_
#define SIMDBINARYPACKING_H_
#include "codecs.h"
#include "simdbitpacking.h"
#include "util.h"
/**
*
* Designed by D. Lemire with ide... | 6,113 | 36.975155 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/bitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef BITPACKING
#define BITPACKING
#include "common.h"
void __fastunpack0(const uint32_t * __restrict__ in, uint32_t * __restrict__ out);
void __fastunpack1(cons... | 9,050 | 77.704348 | 95 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/bitpackingaligned.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef BITPACKINGALIGNED
#define BITPACKINGALIGNED
#include "common.h"
using namespace std;
const uint32_t * fastunpack_8(const uint32_t * __restrict__ in,
... | 1,277 | 32.631579 | 67 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/externalvector.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef EXTERNALVECTOR_H_
#define EXTERNALVECTOR_H_
#include "common.h"
using namespace std;
template<class CMP>
class BinaryFileBuffer {
public:
typedef uint32_t... | 13,280 | 28.778027 | 85 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/deltautil.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef DELTAUTIL_H_
#define DELTAUTIL_H_
#include "common.h"
#include "codecs.h"
#include "memutil.h"
#include "entropy.h"
#include "ztimer.h"
/**
* This file is mad... | 20,256 | 37.36553 | 134 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/simdfastpfor.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDFASTPFOR_H_
#define SIMDFASTPFOR_H_
#include "common.h"
#include "codecs.h"
#include "simdbitpacking.h"
#include "memutil.h"
#include "util.h"
/**
* SIM... | 11,279 | 34.583596 | 104 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/entropy.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef ENTROPY_H_
#define ENTROPY_H_
#include "common.h"
#include "util.h"
using namespace std;
class EntropyRecorder {
public:
EntropyRecorder() :
co... | 2,645 | 25.19802 | 128 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/pfor.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef PFOR_H_
#define PFOR_H_
#include "common.h"
#include "codecs.h"
#include "bitpacking.h"
#include "util.h"
using namespace std;
/**
* This implements as bes... | 11,429 | 35.870968 | 127 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/blockpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
* and Owen Kaser
*/
#ifndef BLOCKPACKING_H_
#define BLOCKPACKING_H_
#include "codecs.h"
#include "bitpackingunaligned.h"
#include "bitpackingaligned.h"
#include "util.h... | 13,946 | 37.106557 | 97 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/simple9.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
/* Based on code by
* Takeshi Yamamuro <linguin.m.s_at_gmail.com>
* Fabrizio Silvestri <fabrizio.silvestri_at_isti.cnr.it>
* Rossano Venturini <rossano.venturini_at_isti.cnr.it>
* which was av... | 17,164 | 31.144195 | 90 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/packingvectors.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef PACKINGVECTORS_H_
#define PACKINGVECTORS_H_
#include "common.h"
#include "bitpacking.h"
template <uint32_t PACKSIZE = 32>
class packingvector
{
public:
t... | 1,953 | 27.735294 | 91 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/horizontalbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
/**
* This is purely for technical comparisons.
*
* Implementation of
*
* Willhalm T, Popovici N, Boshmaf Y, Plattner H, Zeier A, Schaffner J.
* SIMD-scan: ultra fast in-memory table ... | 905 | 21.65 | 92 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/pfor2008.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef PFOR2008_H_
#define PFOR2008_H_
#include "common.h"
#include "codecs.h"
#include "bitpacking.h"
#include "util.h"
#include <iostream>
using namespace std;
/... | 13,195 | 36.276836 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/fastpfor.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef EPFOR_H_
#define EPFOR_H_
#include "common.h"
#include "codecs.h"
#include "packingvectors.h"
#include "cpubenchmark.h"
#include "blockpacking.h"
#include "sim... | 15,872 | 34.117257 | 99 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/snappydelta.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
/**
* Goal here is to use Google Snappy to compress deltas.
* This is purely for comparison sake, not necessarily
* because this is a good idea a priori.
*/
#ifdef USESNAPPY
#ifndef SNAPPYDELTA_H_
#define SNAP... | 1,544 | 28.150943 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/codecfactory.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef CODECFACTORY_H_
#define CODECFACTORY_H_
#include "common.h"
#include "codecs.h"
#include "vsencoding.h"
#include "util.h"
#include "simple16.h"
#include "simp... | 3,879 | 32.448276 | 100 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/codecs.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef CODECS_H_
#define CODECS_H_
#include "common.h"
#include "util.h"
#include "bitpackinghelpers.h"
class NotEnoughStorage: public std::runtime_error {
public:... | 5,906 | 32 | 95 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/ztimer.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
#ifndef ZTIMER
#define ZTIMER
#include "common.h"
//
// VS2012 bug: high_precision_clock is defined as system_clock and precision is about 15 MS!!
// See: https://connect.microsoft.com/VisualStudio/feedback/deta... | 3,151 | 24.626016 | 127 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/rolledbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/ and Owen Kaser
*/
#ifndef ROLLEDBITPACKING_H_
#define ROLLEDBITPACKING_H_
#include "common.h"
/***
* The idea here is not to unroll the loops and to let the
* compile... | 24,947 | 24.535312 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/variablebyte.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef VARIABLEBYTE_H_
#define VARIABLEBYTE_H_
#include "common.h"
#include "codecs.h"
class VariableByte: public IntegerCODEC {
public:
template<uint32_t i>
... | 3,691 | 31.104348 | 77 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/mersenne.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
#ifndef MERSENNE_H_
#define MERSENNE_H_
#include "common.h"
#include "util.h"
/**
* Mersenne twister - random number generator.
* Generate uniform distribution of 32 bit integers with the MT19937 algorithm.
... | 2,301 | 22.02 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/FastPFor/headers/bitpackinghelpers.h | /*
* bitpackinghelpers.h
*
* Created on: Jul 11, 2012
* Author: lemire
*/
#ifndef BITPACKINGHELPERS_H_
#define BITPACKINGHELPERS_H_
#include "bitpacking.h"
inline void fastunpack(const uint32_t * __restrict__ in, uint32_t * __restrict__ out, const uint32_t bit) {
// Could have used function pointer... | 10,494 | 27.519022 | 119 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/xcode/Samples/FrameworkSample/widget.h | // Copyright 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 2,270 | 36.85 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/test/gtest-param-test_test.h | // Copyright 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 2,341 | 40.821429 | 74 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/test/production.h | // Copyright 2006, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 2,172 | 37.803571 | 73 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/test/gtest-typed-test_test.h | // Copyright 2008 Google Inc.
// All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions a... | 2,485 | 36.104478 | 73 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/samples/prime_tables.h | // Copyright 2008 Google Inc.
// All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions a... | 4,072 | 31.846774 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/samples/sample2.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 3,007 | 33.574713 | 73 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/samples/sample1.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 1,937 | 43.045455 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/samples/sample4.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 2,083 | 37.592593 | 73 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/samples/sample3-inl.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 5,357 | 29.793103 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest-test-part.h | // Copyright 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 6,469 | 35.553672 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest_pred_impl.h | // Copyright 2006, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 15,140 | 41.175487 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest-death-test.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 11,109 | 38.119718 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest-message.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 8,395 | 35.34632 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest-typed-test.h | // Copyright 2008 Google Inc.
// All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions a... | 10,242 | 38.396154 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest-spi.h | // Copyright 2007, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 9,951 | 41.712446 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/gtest_prod.h | // Copyright 2006, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 2,324 | 38.40678 | 73 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/internal/gtest-death-test-internal.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 12,901 | 40.754045 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/internal/gtest-linked_ptr.h | // Copyright 2003 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions a... | 8,063 | 33.461538 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/internal/gtest-string.h | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 13,595 | 37.735043 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/internal/gtest-param-util.h | // Copyright 2008 Google Inc.
// All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions a... | 24,234 | 38.08871 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EliasFano.OV14/partitioned_elias_fano/partitioned_elias_fano.nopos/integer_encoding_library/.utest/gtest-1.6.0/include/gtest/internal/gtest-filepath.h | // Copyright 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | 9,697 | 44.962085 | 80 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/linker/interface.h |
/**********************************************************************************
* General interface for using compressed representations of posting lists *
* Any alternative representation must implement all these functions *
*****************************************************************... | 4,017 | 31.666667 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/linker/build_il.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "interface.h"
/* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
/* macro to detect and notify errors */
#define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}}
int read_file(char *f... | 3,517 | 24.492754 | 109 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/utils.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "utils.h"
/*construction sa*/
/*#include "interface.h"*/
#include "divsufsort.h"
#include "lfs.h"
#include <sys/time.h>
#include <time.h>
struct timeval tv1,tv2;
void startTime(){
gettimeofday(&tv1,NULL);
}
unsigned long end... | 10,869 | 26.518987 | 111 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/treelist.c | #include <stdlib.h>
#include <stdio.h>
#include "treelist.h"
TreeList* newTreeList(){
TreeList* l;
l = (TreeList*)malloc(sizeof(TreeList));
if(l){
l->prev=NULL;
l->next=NULL;
l->left=NULL;
l->right=NULL;
l->val=-1;
}
return l;
}
TreeList* findValue(TreeList* l,int val){
... | 2,390 | 20.93578 | 71 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/static_bitsequence_builder_brw32.h | /* static_bitsequence_builder_brw32.h
* Copyright (C) 2008, Francisco Claude, all rights reserved.
*
* static_bitsequence_builder_brw32 definition
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Soft... | 1,499 | 35.585366 | 77 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/lfs.h | /*
* lfs.h for libdivsufsort
* Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitat... | 1,689 | 28.649123 | 68 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/static_bitsequence_brw32.h | /* static_bitsequence_brw32.h
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | 2,716 | 33.392405 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/extractor77.h | #ifndef __EXTRACTOR77_H__
#define __EXTRACTOR77_H__
#include "extractor.h"
class Extractor77: public Extractor{
public:
Extractor77(char* filename, unsigned int sampling);
~Extractor77();
virtual unsigned char* extract(unsigned int start, unsigned int end);
protected:
void char... | 577 | 33 | 131 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/LZend.nuevo.h | #ifndef __LZEND2_H__
#define __LZEND2_H__
#include "LZ77.h"
#include "RMQ.h"
#include "static_permutation.h"
class LZEnd2: public LZparser{
public:
LZEnd2(char* filename);
virtual ~LZEnd2();
/* generates the LZ parsing of filename and returns the number of phrases
* creates 3 diff... | 1,490 | 32.886364 | 106 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/RMQ_succinct.h | #ifndef _RMQ_succinct_hpp_
#define _RMQ_succinct_hpp_
//#define MEM_COUNT
#include <math.h>
typedef int DT; // use long for 64bit-version (but take care of fast log!)
typedef unsigned int DTidx; // for indexing in arrays
#include <stdlib.h>
#include <limits.h>
#include <iostream>
using namespace... | 2,405 | 21.277778 | 90 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/ilist_interface.h | /**********************************************************************************/
/* General interface for using compressed representations of posting lists *
/* Any alternative representation must implement all these functions *
/******************************************************************... | 4,021 | 32.239669 | 84 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/utils.h | #ifndef __UTILS_H__
#define __UTILS_H__
void startTime();
unsigned long endTime();
unsigned long endTime2();
unsigned char* readText(char* filename,unsigned int* length);
int saveText(unsigned char* text,int length,char* filename);
unsigned int* invertSA(unsigned int* sa,int len);
unsigned int* readArray(char* filenam... | 796 | 40.947368 | 90 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/interfazTextCompressorDocs.h |
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a collection of text documents
who... | 2,009 | 39.2 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/deltacodes.h |
#include "basics.h" //*añadido por fari 2013, para get_fieldLL incluido en subclases.
class DeltaCodes{
public:
DeltaCodes(unsigned int* array, unsigned int n, unsigned int sampling);
virtual ~DeltaCodes();
unsigned int select(unsigned int total);
unsigned int rank(unsigned int po... | 1,307 | 38.636364 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/perm.h | /* perm.h
* Copyright (C) 2005, Diego Arroyuelo, all rights reserved.
*
* Permutation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... | 2,191 | 23.629213 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/static_permutation_mrrr.h | /* static_permutation_mrrr.h
* Copyright (C) 2008, Francisco Claude, all rights reserved.
*
* Permutation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of... | 1,826 | 34.134615 | 97 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/LZend (copia).h | #ifndef __LZend_H__
#define __LZend_H__
#include "LZ77.h"
#include "RMQ.h"
class LZend: public LZparser{
public:
LZend(char* filename);
virtual ~LZend();
/* generates the LZ parsing of filename and returns the number of phrases
* creates 3 different files (arrays):
* f... | 1,080 | 29.027778 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/extractor.h | #ifndef __EXTRACTOR_H__
#define __EXTRACTOR_H__
//#include "basics.h"
//#include "bitmap.h"
#include "deltacodes.h"
#include "basics.h" //*añadido por fari 2013, para get_fieldLL incluido en subclases.
class Extractor{
public:
Extractor(char* filename, unsigned int sampling);//sampling for deltacoding
... | 1,131 | 30.444444 | 123 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/static_bitsequence_builder.h | /* static_bitsequence_builder.h
* Copyright (C) 2008, Francisco Claude, all rights reserved.
*
* static_bitsequence_builder definition
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundat... | 1,401 | 36.891892 | 79 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/basics.h | /* basics.h
* Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
*
* Some preliminary stuff
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the L... | 9,547 | 30.93311 | 97 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/555.lzendFari.Sebas/src/static_bitsequence.h | /* static_bitsequence.h
* Copyright (C) 2008, Francisco Claude, all rights reserved.
*
* static_bitsequence definition
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* v... | 2,716 | 27.6 | 90 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.