Algorithms Cheat Sheet 2026
The 30 highest-yield Algorithms facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
50 questions
60 min time limit
80.00% to pass
- Which algorithm finds all strongly connected components in a directed graph in O(V + E) time? → Kosaraju's
- What is the key benefit of using shared vocabulary (e.g., agreed definitions for 'fast,' 'efficient') between technical and non-technical teams? → It reduces miscommunication and aligns expectations across stakeholders
- A load balancer must distribute requests across servers so no server is overwhelmed. Consistent hashing is preferred over simple modular hashing because: → Adding or removing a server only remaps a fraction of keys instead of all keys
- Floyd-Warshall algorithm solves which graph problem? → All-pairs shortest path
- Which attack specifically targets the algorithm training pipeline by injecting malicious data to corrupt a machine learning model's behavior? → Data poisoning attack
- When an algorithm unexpectedly degrades in production, what is the first communication priority? → Notify affected stakeholders promptly with impact scope and estimated resolution time
- Which sorting algorithm is most suitable for sorting linked lists efficiently? → MergeSort
- In supply chain risk management for software, what is a 'software bill of materials' (SBOM) used for? → Identifying all third-party components and their known vulnerabilities
- An e-commerce site uses a hash function to map product IDs to storage slots for O(1) lookup. What is a key concern with this approach? → Hash collisions
- When a search engine indexes the web, it visits pages by following links layer by layer. Which traversal algorithm does this resemble? → Breadth-First Search
- Which quantitative technique calculates the expected value of additional information to decide whether further risk analysis is worth its cost? → Expected Value of Perfect Information (EVPI)
- During risk prioritization, a team applies the Pareto principle. What does this suggest about risk distribution? → Roughly 80% of impact comes from 20% of risks
- How do Algorithms professionals transfer knowledge from training to practice? → Through supervised practice, mentoring, gradual independence, and ongoing feedback
- A genomics tool aligns a short DNA read against a reference genome of 3 billion bases. Which algorithmic technique makes this feasible? → BWT/FM-index allowing near O(m) lookup
- What is the first step in risk assessment for Algorithms professionals? → Identifying potential hazards and vulnerabilities in the specific context
- What is the 'no free lunch theorem' and its implication for algorithm research? → No single algorithm outperforms all others across every possible input distribution
- Which search algorithm requires the input list to be sorted before it can be applied? → Binary Search
- Which principle requires that the same algorithmic decision process be applied uniformly to individuals regardless of protected characteristics? → Procedural fairness
- In a sorted array, if you double the number of elements, how many additional steps does Binary Search need? → 1 more step
- Which risk response is most appropriate when the cost of mitigating a risk exceeds the expected loss from the risk occurring? → Acceptance
- Which metric directly measures the number of independent paths through a program's control flow? → Cyclomatic complexity
- Consider two L1 and L2 sorted lists. In the worst-case scenario, the number of comparisons required by my merge sort algorithm will be → L1+L2-1
- What is the time complexity of accessing an element by index in a dynamic array (e.g., Python list)? → O(1)
- An algorithm change reduced server costs by 40% but increased code complexity. How should this trade-off be communicated to stakeholders? → Present both the benefit and the maintenance risk with mitigation strategies
- What is the Dijkstra Algorithm's running time? → O(|V|^2 + |E|)
- What is the purpose of a 'smoke test' in algorithmic quality control? → To quickly verify the most critical functions work before deeper testing
- Which of the following problems is NP-complete? → The Traveling Salesman Decision Problem
- Which metric captures the percentage of known defects detected by a test suite before release? → Defect detection percentage (DDP)
- How should an Algorithms professional respond to a compliance violation? → Report it promptly, investigate the root cause, and implement corrective actions
- Which emerging U.S. regulatory requirement asks companies to disclose when consumers are interacting with an AI system rather than a human? → The AI Transparency Act (proposed)
Turn these facts into recall:
Was this helpful?