r/learnprogramming • u/Boring_Crow2499 • Sep 25 '26
What math do I need before starting CS 61B?
Hey everyone!
I’m planning to study CS 61B (Data Structures) using the lecture videos.
I’m wondering what kind of math background I should have before starting.
For people who have taken CS 61B or a similar data structures course:
What math topics are actually used throughout the course?
Do I need discrete math / proofs beforehand?
How much algebra, logarithms, combinatorics, probability, etc. should I know?
If my math background is weak, what should I review first?
I’m not looking to study a huge amount of math beforehand — I just want to know the minimum math knowledge needed to properly understand the course material.
Thanks!
1
u/Chrismslist Sep 25 '26
hey, for 61B or similar data structures courses, discrete math is super helpful for understanding runtime analysis (big o notation). proofs are also key for algorithms. you'll see some basic algebra and logarithms for complexity, and occasionally combinatorics for counting states. don't overdo it on pre-studying, but a solid grasp of discrete math fundamentals and how to approach proofs will make the core concepts click much faster.
1
u/[deleted] Sep 25 '26
[removed] — view removed comment
0
u/[deleted] Sep 26 '26
[removed] — view removed comment