Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

What are the "must known" algorithms for online programming contests?

$
0
0

Hello all,
I've been practicing at Codechef for a while and now I'm gradually moving toward medium/hard problems. However many algorithms at these levels are very difficult to predict, and I was always stuck because I'm not aware of them. So I open this topic, my hope is to have a wish-list of most used algorithm for online programming contest that I can look up for reference. Here is my short-list up to now:

  1. Segment tree/Interval Tree
  2. Binary Indexed Tree
  3. Fast Modulo Multiplication (Exponential Squaring)
  4. Suffix Array/Suffix Tree
  5. KMP string searching
  6. Manacher's Algorithm
  7. Union Find/Disjoint Set
  8. Trie
  9. Prime Miller Rabin
  10. Matrix Recurrence + Fast Modulo Multiplication for counting
  11. Stable Marriage Problem
  12. Extended Euclid's algorithm
  13. Ternary Search
  14. Fast Fourier Transform for fast polynomial multiplication
  15. Djikstra's algorithm, Bellman-ford algorithm, Floyd-Warshall Algorithm
  16. Prim's Algorithm, Kruskal's Algorithm
  17. RMQ, LCA
  18. Flow related algorithms, assignment problem, Hungarian algorithm
  19. Bipartite matching algorithms
  20. Heavy-light decomposition
  21. Sweep line algorithm
  22. Z algorithm
  23. Convex Hull
  24. Suffix Arrays
  25. LCP
  26. Heuristic Algorithms
  27. Gaussian Elimination
  28. Numerical Integration/Differentiation
  29. Line Clipping
  30. Advanced Maths Ad-Hoc problems
  31. Aho–Corasick string matching algorithm;

Add some more...


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>