Git Product home page Git Product logo

compressed-indexes-string's Introduction

Requirements

You need a fully working Python distribution. The dependencies are listed in the requirements.txt file. You can obtain a fully working Python distribution using pyenv by typing the following commands:

$ pyenv virtualenv 2.7.9 2.7.9-prefix
$ pyenv local 2.7.9-prefix
$ pip install -r requirements.txt

You also need to install a set of third party dependencies in order to successfully compile the sources. On Mac OS you can install them using homebrew.

$ brew install cmake boost pigz

On Ubuntu something the following

In case you have a linux based system you can use the bpt tool and scripts that are already shipped with the source package. Check out the bpt/ directory for further instructions.

$ mkdir -p cpp/build && cd cpp/build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make

Testing requires a python version:

$ make test

Obtaining the datasets

Please refer to the paper for information on how to obtain those datasets. You should have in the datasets/raw directory the following files:

90084fc73aaf9228805de6fae02db172  datasets/raw/DBLPnew/dblp-17-Oct-2014.nodes
ee5ef196e9749647438009963e3f8d98  datasets/raw/DBLPnew/dblp-17-Oct-2014.edges
acb915c7fb58447081d0975603ed6e45  datasets/raw/soc-LiveJournal1/name2id
94495d91700282fe75b4a99b6b9ffefa  datasets/raw/soc-LiveJournal1/out.soc-LiveJournal1
9c0f7983a523edd1b753af68c5acc4bd  datasets/raw/Twitter/twitter_rv.net
35ac716e5de410a9b1f7bd65a748713a  datasets/raw/Twitter/numeric2screen

Cleanup datasets

A set of BASH scripts are provided to reshape/cleanup the original dataset in a common format. Please note that the cleaning up of twitter dataset will take hours. Better launch the script before going to bed ;)

$ bash ./scripts/cleanup/dblp.sh
$ bash ./scripts/cleanup/livejournal.sh
$ base ./scripts/cleanup/twitter.sh

Running experiments

The first experiment reported in the paper compare all the different encodings against Friend queries:

$ bash scripts/report/encodings.sh

The second experiment compare the two best encodings against FoF (Friends of Friends) queries:

$ bash ./scripts/report/fof.sh

The last experiment is about top-k FoF queries:

$ bash ./scripts/report/topk.sh

Authors

compressed-indexes-string's People

Contributors

nopper avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.