Code Monkey home page Code Monkey logo

qdags's Introduction

qdags

To compile:

g++ -std=c++11 -O3 -DNDEBUG -I ~/include -L ~/lib program.cpp -o program -lsdsl -ldivsufsort -ldivsufsort64 

-std=c++11 -O3 -DNDEBUG -I /opt/homebrew/include -L /opt/homebrew/lib -lsdsl -ldivsufsort -ldivsufsort64

g++ -std=c++11 -O3 -DNDEBUG -I ~/include -L ~/lib -lsdsl -ldivsufsort -ldivsufsort64 program.cpp -o program  

To run main

./main ./data/prop-direct-P197 ./data/prop-direct-P800 ./data/prop-direct-P1366 

Tests

In the queries folder we have all the queries to be tested grouped by the type of test:

  • partial:
    • dfuds:
      • fixedQueue
      • nonFixedQueue
    • louds:
      • fixedQueue
      • nonFixedQueue
  • ranked:
    • dfuds:
      • fixedQueue
      • nonFixedQueue
    • louds:
      • fixedQueue
      • nonFixedQueue
  • lqdags
  • traditional algorithm (Arroyuelo et al. 2022)

The script files to run the tests are in the runqueries folder. On each subfolder we have:

  • Compile script: it compiles all the queries.
  • Run script: it runs all the queries and put the outputs in the respective output folder.
  • All the run queries to be tested with different data. The files are named as runqueries-[type of query]-bfs-sorted.sh

To run a particular test

  1. First go to the runqueries folder and choose the subfolder you want to test. For example cd runqueries/partial/dfuds/fixedQueue

  2. Run the compile script (the firs)

    For GNU CC: ./compilePartialDfudsFixedQueue.sh

    For Clang: ./compilePartialDfudsFixedQueueM1.sh

  3. Run the run script ./runPartialDfudsFixed.sh

To run all the tests

  1. Go to the runqueries folder cd runqueries

  2. Run the compile script

    For GNU CC ./compileAllAlgorithms.sh

    For Clang ./compileAllAlgorithmsM1.sh

  3. Run all scripts ./runAllAlgorithms.sh

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.