Giter Site home page Giter Site logo

garrrruii / rtreeproject Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28 KB

Rtree building and query processing

Home Page: https://garrrruii.tistory.com/category/Log/2-dimensional%20R%20Tree

C++ 100.00%
spatial-data spatial-index rtree rtree-range-queries knn-algorithm

rtreeproject's Introduction

Rtree building and query processing

2D-R-tree code

2020-11-13

  • 2D-Rtree of point object for blockchain => no need deletion
  • count logical IO of tree-building and range/knn query processing => node access count

NOW:

  • Point with integer coordinates for object, 2D-rectangle(mbr)---node
  • INSERT: insert obj to node with 1)smallest enlarged area 2)smallest area
  • DELETE: NO DELETION.
  • SPLIT:
    • divide node in half and half
    • pick two seeds by choosing two nodes making largest wasted space
    • distribute child by choosing what and where to insert with 1)smallest enlarged area 2)smallest area
  • QUERYS: range, knn
  • COUNT IO: ONLY for this project. Count it logically. Assume that
    1. We have nodes in DISK from lv3 i.e. ONLY root~lv2 nodes are in MEMORY
    2. Parent node can see children's coord info

PLAN:

  • Change code using 'Class'
  • Change it to apply to rectangular objects or real number coordinates
  • If it's possible: visualization using python or else (something helpful to understand Rtree mechanism)
  • Add deletion...?
  • Add other queries? ex) window, rnn
  • Else, working on the project personally (Regardless of THIS project)

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.