How to work through this deck
Use these data structures and algorithms flashcards as a retrieval drill, not as a page to reread. For each card, read the question, say or think of a precise answer, then reveal the answer. Grade it Again if you could not retrieve the fact, Hard if you got it with effort or missed a condition, Good if you answered correctly, and Easy if it came immediately and accurately. The MySummaries deck view shows the first card answered and ready to grade; the remaining cards form the same session.
Keep answers short but qualified. “Hash tables are O(1)” is not a complete answer: the useful version says average-case lookup is O(1), while worst-case lookup is O(n). Those qualifiers are often where understanding shows. If you miss one, do not memorise only the symbol. Explain what operation is being counted and which assumption supports the bound.
A MySummaries deck on this topic looks like this:
What is the worst-case time complexity of binary search on a sorted array?
O(log n), because each comparison halves the remaining search interval.
All 18 cards
That is a MySummaries deck, filled with data structures and algorithms material. Yours is written from your own notes. Start free
Review the facts that need conditions
The cards cover common structures and algorithms, but the point of the drill is to retrieve the right fact with its conditions attached. After a session, sort your misses into three kinds: a fact you did not know, a condition you forgot, or a complexity you confused with another operation. For example, heap insertion is O(log n), but reading its minimum is O(1); mixing those up is an operation-mapping error rather than a general failure to understand heaps.
When a card feels difficult, answer it again in a complete sentence. For complexity questions, name the input size and operation. For graph questions, state whether the graph is unweighted and what representation the bound assumes. For hashing, retain the average-versus-worst distinction. This makes a short answer useful beyond the exact wording on the card.
Here is the Must not miss core these cards were cut from:
Turn repeated misses into a repair task
Do not respond to every missed card by rereading an entire chapter. Identify the missing distinction and write a one-line correction. If you missed a heap card, compare access to the root with insertion or removal. If you missed BFS, say why the layer-by-layer order gives shortest paths when every edge has equal cost, and note that this claim does not apply unchanged to arbitrary weighted graphs. Then retry the card later rather than immediately counting recognition as mastery.
Repeated misses deserve a focused prompt that tests the distinction directly. For example, if “balanced tree search is logarithmic” keeps being confused with a skewed tree, the repair question should ask what happens when the height grows to n − 1. The remediation tray holds that kind of targeted follow-up:
You lost this distinction twice: a binary search tree has O(log n) search only when its height is logarithmic. What is the worst-case search time when the tree is skewed to height n − 1, and why?
A repeatable review routine
Work through a manageable group of cards, then pause to explain two or three answers without looking. That second step checks whether you can connect a fact to its reason: binary search halves a sorted search interval; BFS advances in edge-distance layers; a dynamic array’s occasional resize is spread across many appends in the amortised analysis.
For a missed card, use this sequence:
- State the answer and its condition in your own words.
- Give a small example or counterexample, such as a skewed tree or a hash collision.
- Grade it honestly, then revisit it when it is due.
Once the basic deck is reliable, add cards from the data structures and algorithms you are currently studying. Keep each card to one decision or fact: separate a traversal’s purpose from its complexity, and separate a sorting algorithm’s time from its extra-space cost. That way, a wrong answer points to something specific you can repair.
How MySummaries helps
MySummaries lets you build a revision board from your own course material, then generate flashcards from it and schedule reviews with spaced repetition. For this subject, that means you can add your lecture notes on trees, sorting or graph algorithms and turn the definitions and complexity distinctions you actually need into a deck. Start at MySummaries.