|
|
|
|
|
by madsbuch
1144 days ago
|
|
How did you apply induction proofs in competitive programming? Even using recursion is rarely a good idea as you loose control with your memory layout. And using a language that supports the concept of proof by induction would surely leave you on the absolutely last place for competitive programming as most of the algorithms used use guarantees that are extremely difficult to reason about even with some of the most recent advances in formal methods. I do see how combinatorics work with competitive programming, though. and to an extend also probability theory, though I never used any probabilistic algorithms myself. |
|
Used recursion at tons of Codeforces / ICPC problems with some caching(commonly known as "dynamic programming")