Giter Site home page Giter Site logo

convex-hull's Introduction

Convex Hull Algorithm

Tugas Kecil 2 Strategi Algoritma 2021/2022

Table of Contents

General Information

Convex Hull Using Divide and Conquer Algorithm

A convex hull is a polygon composed of a subset of points such that for any two points on the plane (eg p and q), all line segments ending in p and q are in that set. The convex hull problem is a computational geometry problem and can be developed for computer animation, optimization, and statistics problems. To solve convex hull problem, this program use divide and conquer algorithm and recursion. This program is a python library that will return the convex hull of each label in the form of a list of data/points forming convex hull, then display it with a different color.

Screenshots

image image

Requirements

Python library:

  • numpy
  • pandas
  • matplotlip.pyplot
  • math
  • sklearn (to load datasets)

Usage

(LOCAL)

  1. Install the required python libraries in your python environment (you can youse conda)
  2. (First use only): Clone this repository
  3. To run the library, open the "main.ipynb" file in src folder
  4. Activate the environment that has the required python libraries
  5. Run the first cell to import all of the required library
  6. Load dataset and create dataframe by running the first cell of each dataset
  7. Run other cells to visualize the convex hull

Project Status

Project is: complete .

Contact

Created by Addin Nabilal Huda (13520045) Linkedin - feel free to contact me!

convex-hull's People

Contributors

addinnabilal avatar

Watchers

 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.