Giter Club home page Giter Club logo

splz's Introduction

SPLZ

SPLZ is a fast algorithm for single source shortest path problem on large-scale road network

This program is an implement of SPLZ algorithm. It consist of three parts:

1). Graph partitioning.
2). Compressing the all-pair shortest path of a road network.
3). Decompressing a particular shortest path tree.

These three parts are included in one Visual Studio 2010 solution. It is easy to build. Partition and compression are parallelized with OpenMP. So a multi-core environment is better.

File format

The benchmark we used is downloaded from http://www.dis.uniroma1.it/challenge9/download.shtml The graph file format is .gr, and the coordinate file format is .co. We would not recommend to use SPLZ on a graph with more than one million vertices. It needs too much time to pre-computing, unless you have a high performance workstation.

Command format

Note:

1.You must input all the parameters mentioned below.
2.Examples of commands are included in ~\x64\Release\

1).partition SPLZ_partition.exe gr_in co_in C len-to-dict regions_out

gr_in:			the graph file to be partitioned.
co_in:			the coordinate file of graph
C:					the parameter that determine how many regions the graph will be partitioned into. 
					(recommand value of C: 1, 2, 4, 8)
len-to-dict:		the parameter that can control the compression ratio and decompression speed.
					lower len-to-dict leads to higher compression ratio and lower decompression speed.
regions_out:	a file that records the result of partitioning.

2). compress SPLZ_compress.exe gr_in regions_in dir_out

gr_in:		the graph to be calculated and compressed.
regions_in:	the file generated by partitioning.
dir_out:		the directory that stores the result of compressing.

3). decompress

Decompression part is just a demo for testing the performance of SPLZ. 
It don't have commandline parameter.
In fact, all parameters are written in the code.
You can modify them and rebuild.

splz's People

Contributors

asds25810 avatar

Watchers

James Cloos 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.