Skip to content

CREVIOS/ALGORITHMS

Repository files navigation

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 (2016-2018) 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)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published