1/35
Vocabulary practice flashcards covering flowchart design, decision logic, algorithmic thinking pillars, flowchart-to-code conversions, and algorithmic analysis concepts including time/space complexity and optimization.
Flowchart
A visual diagram that shows the step-by-step path of a process, system, or computer algorithm using different shapes and arrows.
Conditional Statement
A programming instruction that allows a program to make decisions based on whether a specified condition is true or false, determining which block of code will be executed.
Condition
An expression evaluated in a program to determine whether it is true or false.
Boolean Values
The two possible logical results of evaluating a condition: True or False.
Code Block
A group of instructions executed when the required condition is met.
Conditional Keywords
Reserved words such as if, else, and elif that define the decision-making structure of a program.
Single-Choice Selection (If Statement)
A conditional statement that executes a block of code only when a specified condition is true; if the condition is false, the code block is skipped.
Two-Choice Selection (If-Else Statement)
A conditional statement that provides two possible paths: one block of code executes if the condition is true, while the other executes if the condition is false.
Multiple-Choice Selection (If-Else-If Statement)
A conditional statement that checks multiple conditions in sequence and executes the code block corresponding to the first condition that is true, defaulting to the else block if none are true.
Switch-Case Statement
A selection statement that compares a value with several specified cases and executes the code associated with the matching case.
Match-Case Statement
A selection statement available in Python 3.10 and later that compares a value with different patterns and executes the code for the first matching case.
Nested Conditional Statement
A structure where an if or if-else statement is placed inside another conditional statement to evaluate additional conditions.
Decision Table
A table used to organize conditions and their corresponding actions in a program, showing combinations of conditions and the actions that should be performed for each scenario.
Algorithm
A clear, step-by-step set of instructions used to solve a specific problem or complete a task; essentially a recipe for a computer.
Three Essential Properties of an Algorithm
Unambiguous (Clear), Finite (Has an End), and Feasible (Possible).
Pseudocode
An informal, human-readable way of writing down the steps of an algorithm using plain English mixed with basic coding concepts (like IF, THEN, WHILE, and PRINT) without strict programming syntax.
Algorithmic Thinking
A problem-solving mindset and mental process of breaking down a complex problem into a clear, organized, step-by-step sequence of instructions that anyone or any computer can follow.
Decomposition
A pillar of algorithmic thinking that involves breaking one big or difficult problem into smaller and simpler tasks.
Pattern Recognition
A pillar of algorithmic thinking that involves looking for similarities or repeated ideas in problems.
Abstraction
A pillar of algorithmic thinking that involves focusing only on the important information and ignoring unnecessary details.
Algorithm Design
A pillar of algorithmic thinking and planning process that involves creating a clear, ordered set of step-by-step instructions to solve a problem or complete a task before writing code.
Flowchart-to-Algorithm Conversion
The process of changing a visual flowchart into a written set of step-by-step instructions.
Algorithmic Analysis
The study of an algorithm's performance, especially how much time and memory it needs as the input becomes larger.
Time Complexity
A description of how the number of steps or operations an algorithm performs grows when the input size becomes larger, focusing on operation growth rather than exact seconds.
Space Complexity
A description of how the memory requirement of an algorithm changes as the input size grows, including memory used to store data and temporary values.
Algorithm Efficiency
A measure of how well an algorithm uses computational resources—specifically time and memory (space)—as the size of the data grows.
Big-O Notation
A notation used to classify algorithms based on how their resource use (work or memory) grows when the input size increases.
Constant Time (O(1))
A time complexity pattern where the number of steps stays about the same, even when the input grows (e.g., accessing an item using its position in an array).
Linear Time (O(n))
A time complexity pattern where the number of steps grows in direct proportion to the input size (e.g., checking names one by one in a list).
Quadratic Time (O(n2))
A time complexity pattern where the work grows much faster as input increases (e.g., comparing every item with every other item using two nested loops).
Linear Search
A search method that checks every item one by one, operating at O(n) complexity (e.g., requiring up to 10 checks for 10 items).
Binary Search
A search method that cuts the sorted list in half every time, operating at O(log(n)) complexity (e.g., requiring only up to 4 checks for 10 items).
Algorithm Optimization
The process of improving an algorithm to make it more efficient by reducing execution time and memory usage and removing unnecessary steps while maintaining the correct output.
Memoization
An algorithm optimization technique that involves storing previously calculated results to avoid repeating calculations.
Loop Optimization
An algorithm optimization technique focused on reducing unnecessary repetitions in loops.
Early Termination
An algorithm optimization technique of stopping the process immediately once the desired result is found.