Giter Club home page Giter Club logo

qhl4csp's Introduction

QHL: A Fast Algorithm for Exact Constrained Shortest Path Search on Road Networks

This repository contains the source codes and data for this paper.

Usage

Environment

g++ version: 8.4.0

OS: Ubuntu/CentOS (Unix)

Compilation

cd code

make

Execution

In the folder code/,

./index [network name] [query path]

There is also a default setting where network name=NY and query_path=q1

The "index" instruction will directly build all the index and run the 10 query sets, as stated in paper, stored in the folder "data/[network name]" . The network name could be NY, BAY, or COL. The output of the screen contains many auxiliary details, including the index time and memory costs. The results of the 10 query sets, including the query time, the number of hoplinks and path concatenations, will all be put in the file "Results" in the folder "data/[network name]". The CSP query answers are in a file named with prefix "ans".

Data Description

The data used in the experiments are stored in the folder data/. The folder contains three sub-folders corresponding to the three networks.

In the folder of each network, it contains two files named "USA-road-t.[network name].gr" and "USA-road-d.[network name].gr" corresponding to the travel time and the distance of each edge. The descriptions can be found in the DIMACS challenge (http://www.diag.uniroma1.it//challenge9/download.shtml).

It also contains 10 query set files named q1-q5 and r1-r5 corresponding to those stated in the paper. Each query set file contains 1000 lines. Each line contains three values of a CSP query which are s, t, and C.

The file named "random" contains 50000 random queries for building the QHL index. Each line is a random CSP query.

The file named "order.txt" is used to build the tree decomposition. One can also generate it by using the function "genorder()" in the index.cpp.

qhl4csp's People

Contributors

lbwang95 avatar triccsr 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.