Computer Science: Core Concepts
by FlashQuest
16 computer science flashcards on Big-O notation, data structures and classic algorithms. You get complexity questions on binary search (O(log n)), hash table lookup, quicksort's O(n^2) worst case, merge sort and O(2^n). Data structure cards cover stacks, queues, linked lists, heaps and AVL trees, plus hash collisions. Others ask about in-order traversal, depth-first search, recursion, bubble sort and space complexity. Each card has an explanation.
After you install, search the Table for “Computer Science: Core Concepts”.
All 16 cards in this deck.
Made by FlashQuest. Last updated October 2026. Drafted with AI help.
- What is the worst-case time complexity of binary search on a sorted array?
- O(log n)
- Repeated halving means about log2(n) steps for n elements.
- Which data structure serves elements in Last-In, First-Out (LIFO) order?
- Stack
- Function calls are managed this way, which is why crash reports show a 'trace' of it.
- Which data structure serves elements in First-In, First-Out (FIFO) order?
- Queue
- Breadth-first search uses one to visit graph nodes level by level.
- What is the average-case time complexity of looking up a key in a hash table?
- O(1)
- With many collisions the worst case degrades toward O(n).
- What is the worst-case time complexity of quicksort?
- O(n^2)
- Randomized or median-of-three pivot selection makes this case rare in practice.
- Which binary-tree traversal visits a binary search tree's values in ascending order?
- In-order
- That visit order plus the BST property guarantees sorted output.
- What is the time complexity of merge sort in best, average, and worst cases alike?
- O(n log n)
- The trade-off is O(n) extra memory for the merge step.
- Which graph traversal explores as deep as possible along each path before backtracking?
- Depth-first search
- It's naturally written with recursion or an explicit stack.
- Which tree-shaped structure keeps its minimum (or maximum) element at the root for O(1) access?
- Heap
- Removing the root takes O(log n) to sift the structure back into shape.
- What is the term for a function that calls itself?
- Recursion
- Every correct use needs a base case that stops the self-calls.
- Which data structure chains nodes together, each holding a value and a pointer to the next node?
- Linked list
- Indexing costs O(n), but inserting after a known node is O(1).
- Which Big-O class describes runtime that doubles with every additional input element?
- O(2^n)
- Exponential algorithms become infeasible beyond a few dozen inputs.
Show the other 4 cards
-
What is it called when two different keys hash to the same bucket?
Collision
Chaining and open addressing are the two classic resolution strategies.
-
Which self-balancing binary search tree is named after its two inventors' initials?
AVL tree
It rebalances with rotations whenever sibling subtree heights differ by more than one.
-
What is the measure of how an algorithm's memory use grows with input size called?
Space complexity
Merge sort's O(n) auxiliary array is a classic example of trading it for speed.
-
Which simple sorting algorithm repeatedly swaps adjacent elements that are out of order?
Bubble sort
Its O(n^2) behavior keeps it in classrooms rather than production code.
Every card is here to read. Study them in the app, with spaced repetition bringing back the ones you miss.
Decks like this one.
- Python Basics: Syntax & Core Concepts FlashQuest · 50 cards · ~25 min Ready to play
- Tech Acronyms Decoded FlashQuest · 17 cards · ~10 min Ready to play
- Git Commands Every Dev Knows FlashQuest · 16 cards · ~10 min Ready to play
Study it properly.
All 16 cards are in the app, scheduled so the ones you miss come back sooner.