Code Monkey home page Code Monkey logo

dynamic-convex-hull-on-2-3-4-tree's Introduction

Dynamic Convex Hull on 2-3-4 Tree

This is an implementation of the dynamic convex hull algorithm by Overmars and van Leeuwen as described in [1].

The implementation of this algorithm on this particular data structure, as well as its design and testing data are explored in our paper [2]. We build the necessary concatenable queue data strusture, based on a leaf-oriented 2-3-4 tree. The basic functions (insertions, deletions, rebalancing) of the 2-3-4 tree follow in the same principles as an ordinary 2-3-4 tree.

Finally the proposed tree, is based on the same 2-3-4 augmented tree as the concatenable queue, with the addition that it stores the necessary extra information needed to calculate the convex arcs.

The resulting data structure calculates both the left and right convex arcs and outputs the full convex hull of the set of points.

[1] M. H. Overmars and J. van Leeuwen. Maintenance of configurations in the plane. J. Comput. Syst. Sci., 23(2):166โ€“204, 1981.

[2] Pavlidis,Evripidis - "Dynamic Convex Hulls in 2-4 Trees", July 8, 2021. (http://hdl.handle.net/10889/14997)

dynamic-convex-hull-on-2-3-4-tree's People

Contributors

pavlidise avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dynamic-convex-hull-on-2-3-4-tree's Issues

Bug in ConvexHull::Delete

cpp template<typename Point_2D> inline void ConvexHull<Point_2D>::Delete(Point_2D p) { if (!root) return; else if (root->getIsLeaf()) { DeleteFromLeaf(root, p); } else { DeleteAt(root, p); } } template<typename Point_2D> inline void ConvexHull<Point_2D>::DeleteAt(Point_2D p)
DeleteAt takes one argument but called with two.

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.