Giter VIP home page Giter VIP logo

acm-icpc's Introduction

ACM-ICPC

List of basic algorithms and data structures for algorithmic programming competitions (International Olympiad in Informatics (IOI), ACM International Collegiate Programming Competition (ICPC), Google Code Jam, Facebook Hacker Cup, etc.).

In the past, this list has been quite useful for solving algorithmic programming challenges on online judges like the Sphere Online Judge (SPOJ) and competitions.

Most of this has been coded during high-school (2008-2010) while preparing for the IOI. Consider this a disclaimer about the coding style. I will try to improve the code whenever I have some free time. Bullet-points that are not highlighted below have not been added yet.

If you see any errors or would like to make some improvements, please feel free to set an issue, or even better, make a pull request.

The code is licensed under the MIT License, free to use, have fun!

Algebra

Combinatorics

Graph Theory

Computational Geometry

  • Graham's Scan Algorithm (Convex Hull)
  • Closest Pair of Points (Sweep Line)
  • Line-Line Intersection
  • Segment-Segment Intersection
  • Area of Polygon
  • Line-Point Distance
  • Point-Segment Distance
  • Circle from Three Points
  • Reflection
  • Rotation
  • Area of a Triangle (three points)
  • Bentley-Ottman's Algorithm (Sweep Line, finding all intersections of multiple line segments)
  • Shamos-Hoey Algorithm (checking if there is an intersection given multiple line segments)
  • Crossing Number (resp. Winding Number, method to check whether a point is inside a simple polygon (resp. non-simple polygon))

Data Structures

Dynamic Programming

A selection of solutions to fairly standard DP problems.

String Manipulation

Sorting

Misc

  • Majority Vote
  • Inclusion/Exclusion (using bit tricks)

acm-icpc's People

Contributors

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