Coder Social home page Coder Social logo

graham-scan-viz's Introduction

graham-scan-viz

Graham-Scan-Visualization

###About

A command line app written in Ruby to help visualize the Graham Scan algorithm for finding the convex hull of an object in an โ„2 euclidean space. This was an assignment in my undergrad algorithm analysis course.

This was the first application I've written in Ruby, which will likely be obvious if you are at all familiar with the language. ;) Feedback from experienced Rubyists would be welcomed and appreciated!

For more detailed information about Graham's scan and its geometric underpinnings, chapter 33 of CLRS provides a thorough treatment.

###Usage

NAME
    main.rb -                                                                                                                                                                                                       

    A simple app to help visualize the Graham Scan algorithm for finding convex hulls.

USAGE
    main.rb [options] [arguments]

VERSION
    0.1

OPTIONS
    --fps <i>                 - fps (default: 24)                                                                                                                                                                   
    --width -w <i>            - width (default: 1600)                                                                                                                                                               
    --height -h <i>           - height (default: 900)                                                                                                                                                               
    --num-points -n <i>       - num_points (default: 60)                                                                                                                                                            
    --verbosity <s>           - Verbosity level of output for current execution (e.g. INFO, DEBUG) (default: WARN)                                                                                                  
    --error-output-format <s> - The format to use when outputting errors (e.g. basic, advanced) (default: basic)                                                                                                    
    --version -v              - Print version and exit                                                                                                                                                              
    --help -e                 - Show this message

###Installation

$ git clone [email protected]:ragle/graham-scan-viz.git

$ cd graham-scan-viz

$ gem install escort ap 

Install Ruby/TK. I'm sorry.

###To do

  • Write GAL to remove tcl/TK as a strict dependency, allow for something like shoes or any other library / gem that is easy to install
  • Create issues for bad code / sloppy decisions. Fix them.
  • Write an explanatory blog post about Graham's scan and convex hulls in general

graham-scan-viz's People

Contributors

ragle avatar

Stargazers

 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.