8000 GitHub - Liuguanli/PLATON
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Liuguanli/PLATON

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PLATON

We have provided an rectangle dataset and a training query set under ./learned-packing/data

To pack R-tree through PLATON:

cd learned-packing
python mcts-pack.py

To build the modified libspatialindex:

cd spatialindex-src-1.9.3
cmake .
make

To compile the R-tree program:

cd rtree
g++ -std=c++0x bulk_loading.cpp -lspatialindex_c -lspatialindex -o bulk_loading -L../spatialindex-src-1.9.3/bin -I../spatialindex-src-1.9.3/include
g++ -std=c++0x tree_load.cpp -lspatialindex_c -lspatialindex -o tree_load -L../spatialindex-src-1.9.3/bin -I../spatialindex-src-1.9.3/include
g++ -std=c++0x query.cpp -lspatialindex_c -lspatialindex -o query -L../spatialindex-src-1.9.3/bin -I../spatialindex-src-1.9.3/include

To construct the R-tree packed using PLATON:

./bulk_loading ./data/data_rect_0_0.001_1000000 ./tree/tree_rect_0_0.001_1000000_aspect_0.01_0.001_10000_greedy 125 0.8 tgs ../learned-packing/cut_list/mcts_rect_0_0.001_1000000_aspect_0.01_0.001_10000_greedy

To test the packed R-tree on the test dataset:

./query ./data/query_aspect_0.01_0.001_test_10000 ./tree/tree_rect_0_0.001_1000000_aspect_0.01_0.001_10000_greedy intersection > res

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 79.1%
  • Makefile 8.9%
  • Python 6.6%
  • CMake 2.6%
  • C 2.1%
  • Starlark 0.4%
  • Other 0.3%
0