Code Monkey home page Code Monkey logo

pointregionquadtree's Introduction

PointRegionQuadTree-Java

Build StatusGitHub commit activity

Logo

Point Region Quad Tree

In the Point Region Quad Tree each node either has exactly four children or is a leaf. That is, the PR Quad Tree is a full four-way branching (4-ary) tree in shape. The PR Quad Treerepresents a collection of data points in two dimensions by decomposing the region containing the data points into four equal quadrants, subquadrants, and so on, until no leaf node contains more than a single point. In other words, if a region contains zero or one data points, then it is represented by a PR Quad Tree consisting of a single leaf node. If the region contains more than a single data point, then the region is split into four equal quadrants. The corresponding PR Quad Tree then contains an internal node and four subtrees, each subtree representing a single quadrant of the region, which might in turn be split into subquadrants. Each internal node of a PR Quad Tree represents a single split of the two-dimensional region. The four quadrants of the region (or equivalently, the corresponding subtrees) are designated (in order) NW, NE, SW, and SE. Each quadrant containing more than a single point would in turn be recursively divided into subquadrants until each leaf of the corresponding PR Quad Tree contains at most one point.
For more information »

Table of Contents

Getting Started

Prerequisites

You need to install these packages before run the project.

  • java-8
sudo apt install openjdk-8-jdk
  • maven
sudo apt install maven

Installation

  1. Install Maven
sudo apt install maven
  1. Clone the repo
git clone https://github.com/brkyzdmr/QuadTree-Java.git
  1. Build and run
mvn clean install exec:java


Usage


  • Buttons
    • Ekle: Add new node to the tree
    • Ara: Search in the nodes
    • Sil: Delete all the nodes
    • Rastgele: Create a random tree
    • MouseMiddleButton
      • Scroll Up: Increase search circle size
      • Scroll Down: Decrease search circle size

License

Distributed under the MIT License. See LICENSE for more information.

pointregionquadtree's People

Contributors

brkyzdmr avatar

Stargazers

 avatar

Watchers

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