can anyone suggest some resources to learn math , especially for cp ?? and any basic algorithms to learn ??
# | User | Rating |
---|---|---|
1 | jiangly | 3846 |
2 | tourist | 3799 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3590 |
6 | Ormlis | 3533 |
7 | Benq | 3468 |
8 | Radewoosh | 3463 |
9 | ecnerwala | 3451 |
9 | Um_nik | 3451 |
# | User | Contrib. |
---|---|---|
1 | cry | 165 |
2 | -is-this-fft- | 161 |
3 | Qingyu | 160 |
4 | atcoder_official | 156 |
4 | Dominater069 | 156 |
6 | adamant | 154 |
7 | djm03178 | 151 |
8 | luogu_official | 149 |
9 | Um_nik | 148 |
10 | awoo | 147 |
can anyone suggest some resources to learn math , especially for cp ?? and any basic algorithms to learn ??
Name |
---|
No.
thanks
https://codeforces.me/group/isP4JMZTix/contests I found from someone' comment
https://usaco.guide/
Discrete Mathematics and Its Applications book helped me a lot in understanding a lot of basics in mathematical thinking and proofs and reasoning famous theories in number theory and counting (it is not made for competitive programmers but it helped me)
I use these ->
USACO gold Maths LINK
I got this from a codeforces blog , I don't remember which: You need to get comfortable with these topics primarily Divisibility Congruence, residue classes Primes, properties of primes, prime power factorization gcd, properties of gcd, lcm euclid's algorithm for gcd, and extended euclid for linear diophantine equations chinese remainder theorem Number Systems in different bases, and related properties Here are some algorithms you would definitely need to know — Bigmod (fast exponentiation under modulo) — Inverse mod (conditions for existence) — Sieve for precalculation of primes — Factorization, prime-power factorization For the theoretical topics, you should check out some books, I recommend 104 Number Theory Problems from USA IMO Training, you can also try to find your way through these Michael Penn — Number Theory But after having some basic knowledge, it's just solving a lot of problems, mastery comes with practice. Some of the more intermediate topics include totient function Number of Divisors Sum of Divisors General properties of multiplicative functions Wilson's Theorem Miller Rabin primality detection Pollard Rho factorization
For Practice-> projecteuler LINK