Giter Club home page Giter Club logo

algorithms's Introduction

This repository will contain algorithms that I've found useful,
and that may be useful to other people.

Right now, the only algorithm in the repository is a C++ implementation
of the Hungarian algorithm for computing minimum perfect matchings.
Given a complete, weighted bipartite graph with n vertices on each side,
this algorithm returns a matching of the vertices with minimum total weight.

This algorithm comes up in a whole host of sitations.
For example, I recently found it to be useful as a subroutine in a game:
I had n sprites and n positions I wanted them to occupy, and I used the
algorithm to move each sprite to a position such that the total distance
that they all moved was minimized. In this case, the vertices were the
sprites and positions and the weight of an edge was the distance between.

The algorithm comes in a simple header-only library with almost no dependencies.
It's also in the PUBLIC DOMAIN, so please do whatever you like with it!
I want the barrier to including this in your project to be as low as possible.

-skishore

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.