Volver al ranking

BedirT/ACM-ICPC-Preparation

Python

ACM-ICPC Preparation Guide

algorithmcurriculumprogramming-languageacm-icpccompetitive-programming
Crecimiento de estrellas
Estrellas
2.5k
Forks
696
Crecimiento semanal
Issues
1
1k2k
may 2016sept 2019feb 2023jul 2026
ArtefactosPyPIpip install acm-icpc-preparation
README

ACM-ICPC

ACM-ICPC Preparation

This curriculum has been developed to learn Algorithms to use in Competitive Programming, but can also be used for:

  • Practicing for Interviews
  • Improving Algorithmic Thinking
  • Practicing for College Classes

Prerequisites:

  • To know at least one programming language. (You have to be able to use the language efficiently.)

The concept of this repository is to have well-structured content divided into parts that one can follow even if they are busy. Here we collected sources we find well prepared to learn the proposed topics. The curriculum has different data structures and algorithms.

Estimated time required for a week is 6-7 hours. (To complete the curriculum in the given time)

Basic usage guide: Using this repository depends on what the user wants to do with it. Here we are suggesting the following for people who want to slowly gain knowledge of the topics while continuing their studies etc.:

  1. Check out the written or video sources provided for a given topic depending on the preference. Go over as many as needed to gain a good understanding of the topic.
  2. Without checking the source code, try to replicate the algorithm or data structure on your own.
  3. When stuck or when done, look at the source codes provided, and compare them with yours to see what might be your mistake. Try to fix it.
  4. After you feel comfortable with the code, try to solve the given problems.
  5. When you are done with solving or are stuck at some point, check given solutions and try to understand your mistake or see if a better approach exists.

Resources

Here are some of the websites/tools that we use through this curriculum:

Contribution

If you have anything to add, do not hesitate to offer! You can check Code of Conduct. You can submit a PR or an issue; I will try to personally review all.

Topics

Here are the topics we currently include in the curriculum.

Data Structures

  • Stacks
  • Queues
  • Priority queue
  • Hashmap
  • Linked List
  • Trees
  • Heaps
  • Advanced Trees
    • Tries
    • Segment trees
    • Fenwick tree or Binary indexed trees
    • RMQ
  • SQRT Decomposition
  • Disjoint Data Structure
  • C++ STL (optional)

Algorithms

  • Number Theory

    • Prime Numbers (Sieve of Eratosthenes)
    • GCD and LCM Euclid’s Algorithm
    • Modular Exponentiation
    • Long arithmetic (Multi, Add)
    • Efficient Prime Factorization
  • Combinatorics (Probability-Combinations-Permutations-Matrix..)

  • Computational Geometry

    • Primitive Operations
      • Intuition
      • Polygon Inside, Outside
      • Implementing CCW
      • Immutable Point ADT
    • Convex Hull
    • Closest pair problem
    • Line intersection
  • Sort

    • QuickSort
    • Counting Sort
    • Merge Sort
  • Search

    • Binary Search
    • Ternary Search
  • Graph Theory

    • Depth First Search (DFS)
    • Breadth First Search (BFS)
    • Dijkstra’s Shortest Path
    • Minimum Spanning Tree
    • Ford Bellman
    • Floyd Warshall
    • LCA (Lowest Common Ancestor)
    • Max Flow / Min Cut
  • Dynamic Programming

    • Knapsack
    • Matrix chain multiplication
    • Coin Change
    • Kadane
    • Longest increasing Subsequence (with RMQ)
  • Strings

    • Z algorithm
    • Suffix Trees/Arrays
    • Knuth-Morris-Pratt Algorithm (KMP)
    • Rabin-Karp Algorithm
    • Hash
  • Bit Manipulation

  • Game theory

    • Nim game
    • Grundy numbers
    • Sprague-Grundy theorem
  • Optional Advanced Algorithms

    • AVL Trees
    • Graph Coloring
    • Mo's Algorithm
    • Palindromic Tree
    • Heavy Light Decomposition
    • Dynamic Programming by Profile
    • Rod Cutting
    • Topological Sorting
    • DP with Bitmask - Dynamic Programming
    • Diobhantine Equation - Math
    • Flood Fill - Graph

Curriculum

Week Topics Optional Topics
**Heads Up **
  • Big O Notation
1.Week
  • Prime Numbers (Sieve of Eratosthenes)
  • Efficient Prime Factorization
  • Modular Exponentiation
2.Week
  • GCD and LCM Euclid’s Algorithm
  • Long arithmetic (Multi, Sum, Div, Sub)
  • C++ STL:Vector
  • C++ STL:Pairs
  • C++ STL:Iterators
3.Week
  • QuickSort
  • Counting Sort
  • C++ STL:String
  • C++ STL:Set
  • C++ STL:Map
4.Week
  • Merge Sort
  • Binary Search
  • Ternary Search
5.Week
  • Queue (DS)
  • Stack (DS)
  • Breadth First Search
  • Depth First Search
  • C++ STL: Queue
  • C++ STL: Stack
6.Week
  • Linked List (DS)
  • Dijkstra’s Shortest Path
  • Minimum Spanning Tree (MST)
  • Floyd Warshall
  • Cycle Detection (Union Find)
7.Week
  • Knapsack
  • Coin Change
  • Kadane
8.Week Questions from previous topics
9.Week
  • Trees (DS)
  • Segment Trees (DS)
  • Range Minimum Query (RMQ)
  • Lowest Common Ancestor (LCA)
  • Topological Sorting
10.Week
  • Ford Bellman
  • Max Flow / Min Cut
  • Longest increasing Subsequence (with RMQ)
  • Heavy Light Decomposition
11.Week
  • Primitive Operations
    • Intuition
    • Polygon Inside, Outside
    • Implementing CCW
    • Immutable Point ADT
  • Convex Hull
  • Closest pair problem
  • Line intersection
12.Week
  • Tries (DS)
  • Suffix Trees/Arrays (DS)
  • Knuth-Morris-Pratt Algorithm (KMP)
  • Rabin-Karp Algorithm
13.Week
  • Heaps (DS)
  • Priority queue (DS)
  • Combinatorics
14.Week
  • Z algorithm
  • Hash
  • Disjoint Data Structure (DS)
15.Week
  • Matrix chain multiplication
  • SQRT Decomposition (DS)
  • Mo's Algorithm
  • Rod Cutting
16.Week Questions from previous topics
17.Week
  • Nim game
  • Grundy numbers
18.Week
  • Sprague-Grundy theorem
  • Fenwick tree or Binary indexed trees (DS)
19.Week
  • Bit Manipulation
  • Palindromic Tree
  • AVL Trees
20.Week
  • Heavy Light Decomposition
  • Dynamic Programming by Profile
  • Graph Coloring

Contributers

Repositorios relacionados
jwasham/coding-interview-university

A complete computer science study plan to become a software engineer.

Creative Commons Attribution Share Alike 4.0 Internationalcomputer-scienceinterview
356.8k84.4k
TheAlgorithms/Python

All Algorithms implemented in Python

PythonPyPIMIT Licensepythonalgorithm
thealgorithms.github.io/Python/
223k50.9k
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

JavaScriptnpmMIT Licensejavascriptalgorithms
196.3k31k
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

algorithmleetcode
cyc2018.xyz
184.8k50.8k
yangshun/tech-interview-handbook

Curated coding interview preparation materials for busy software engineers

TypeScriptnpmMIT Licenseinterview-questionscoding-interviews
techinterviewhandbook.org
141.1k16.7k
krahets/hello-algo

《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 等代码实现

JavaMavenOtheralgorithmsdata-structures
hello-algo.com
128.7k15.3k
TheAlgorithms/Java

All Algorithms implemented in Java

JavaMavenMIT Licensejavaalgorithms
66k21.2k
kdn251/interviews

Everything you need to know to get the job.

JavaMavenMIT Licensejavainterview
youtube.com/channel/UCKvwPt6BifPP54yzH99ff1g
65.1k12.9k
youngyangyang04/leetcode-master

《代码随想录》LeetCode 刷题攻略:200道经典题目刷题顺序,共60w字的详细图解,视频难点剖析,50余张思维导图,支持C++,Java,Python,Go,JavaScript等多语言版本,从此算法学习不再迷茫!🔥🔥 来看看,你会发现相见恨晚!🚀

Shellleetcodeprogrammer
62k12.3k
azl397985856/leetcode

LeetCode Solutions: A Record of My Problem Solving Journey.( leetcode题解,记录自己的leetcode解题之路。)

JavaScriptnpmOtheralgorithmleetcode
leetcode-solution-leetcode-pp.gitbook.io/leetcode-solution/
55.8k9.4k
algorithm-visualizer/algorithm-visualizer

:fireworks:Interactive Online Platform that Visualizes Algorithms from Code

JavaScriptnpmMIT Licensealgorithmdata-structure
algorithm-visualizer.org
48.7k7.6k
huihut/interview

📚 C/C++ 技术面试基础知识总结,包括语言、程序库、数据结构、算法、系统、网络、链接装载库等知识及面试经验、招聘、内推等信息。This repository is a summary of the basic knowledge of recruiting job seekers and beginners in the direction of C/C++ technology, including language, program library, data structure, algorithm, system, network, link loading library, interview experience, recruitment, recommendation, etc.

C++Otherinterviewinterview-questions
interview.huihut.com
38.1k8.1k