Home / TTL
Name Modified Size InfoDownloads / Week
Parent folder
LICENSE 2017-07-06 35.1 kB
README.txt 2015-12-11 1.6 kB
TTL.cpp 2015-07-09 69.7 kB
query-austin.txt 2015-07-01 2.1 MB
query-berlin.txt 2015-07-01 2.2 MB
query-budapest.txt 2015-07-01 2.1 MB
query-denver.txt 2015-07-01 2.1 MB
query-houston.txt 2015-07-01 2.2 MB
query-losangeles.txt 2015-07-01 2.2 MB
query-madrid.txt 2015-07-01 2.1 MB
query-roma.txt 2015-07-01 2.2 MB
query-saltlakecity.txt 2015-07-01 2.1 MB
query-sweden.txt 2015-07-01 2.3 MB
query-toronto.txt 2015-07-01 2.2 MB
heuristic-berlin.index.order 2015-07-01 66.0 kB
heuristic-budapast.index.order 2015-07-01 26.2 kB
heuristic-denver.index.order 2015-07-01 46.4 kB
heuristic-houston.index.order 2015-07-01 48.1 kB
heuristic-losangeles.index.order 2015-07-01 79.1 kB
heuristic-madrid.index.order 2015-07-01 22.1 kB
heuristic-roma.index.order 2015-07-01 42.8 kB
heuristic-saltlakecity.index.order 2015-07-01 30.2 kB
heuristic-sweden.index.order 2015-07-01 297.1 kB
heuristic-toronto.index.order 2015-07-01 53.6 kB
heuristic-austin.index.order 2015-07-01 12.3 kB
toronto.txt 2015-07-01 66.2 MB
sweden.txt 2015-07-01 80.4 MB
saltlakecity.txt 2015-07-01 6.6 MB
roma.txt 2015-07-01 40.9 MB
madrid.txt 2015-07-01 33.0 MB
losangeles.txt 2015-07-01 35.4 MB
houston.txt 2015-07-01 22.2 MB
denver.txt 2015-07-01 12.5 MB
budapest.txt 2015-07-01 27.1 MB
TTL 2015-07-01 77.8 kB
utility1.h 2015-07-01 38.2 kB
austin.txt 2015-07-01 5.4 MB
berlin.txt 2015-07-01 37.4 MB
Totals: 38 Items   392.0 MB 0
Format of input graph:
-------------File begins--------------------
Number_of nodes 
node_id: sequences of edges (to_node_id, starting_timestamp, duration, bus_id) -1
.
.
.
------------File ends-----------------------

Each tuple (to_node_id, starting_timestamp, duration, bus_id) indicates that departe from node_id at time starting_timestamp, and arrives at to_node_id at time starting_timestamp+duration, by taking bus bus_id.

Note that the sequence of edges are sorted. In particular, edges are sorted in ascending order of node id, and if node ids are the same, then in ascending order of starting timestamp.


A sample input graph :
------------------File begins-------------------
4
0: 1 2 1 b1 1 3 1 b2 2 3 1 b3 -1
1: 2 4 1 b4 -1
2: 3 5 1 b5 -1
------------------File ends-------------------

In the above example, b1, b2, b3, b4, and b5 are bus ids.



How to compile the code:

g++ TTL.cpp -O3 -o TTL -std=c++11

usage:
./TTL -g graph_file -s coverage/file -dq query_file -i output-index-file

Examples:
#load ordering files. The current stored files stores the ordering  which uses
the heuristic ordering method mentioned in the paper.
Then it generates the index file and do query.

./TTL -g austin.txt -s file heuristic-austin.index.order -dq query-austin.txt


#Ordering on the fly instead of loading ordering files. It will use the
adaptive coverage centrality based heuristic ordering method mentioned in the paper. 

./TTL -g austin.txt -s coverage 

#output the index to specified files
./TTL -g austin.txt -s coverage -i austin.txt.index
Source: README.txt, updated 2015-12-11