Big Idea 3: Algorithms and Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/49

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:11 AM on 3/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

50 Terms

1
New cards

Program

A precise set of instructions that a computer can execute.

2
New cards

Algorithm

A step-by-step process for solving a problem or accomplishing a task; the “recipe” behind a solution.

3
New cards

Module

A section of code that can work independently or be combined with other code to build a program.

4
New cards

AP pseudocode

A standardized, language-neutral code style used on the AP CSP exam to test reading, tracing, and algorithm reasoning (not specific language punctuation).

5
New cards

Sequencing

A control structure where statements execute in the order they appear.

6
New cards

Selection

A control structure where the program chooses between paths based on a condition (e.g., IF/ELSE).

7
New cards

Iteration

A control structure where the program repeats a block of statements (loops).

8
New cards

Assignment (←)

An instruction that stores a value into a variable (e.g., x ← expression); it updates stored state and is not a symmetric math equation.

9
New cards

State (program state)

The current stored values of variables and data; assignment changes the program’s state.

10
New cards

Equality test (=)

A comparison used in conditions to check whether two values are equal (e.g., IF x = 5).

11
New cards

1-indexing

List indexing where the first element is at index 1 (AP pseudocode lists are 1-based, not 0-based).

12
New cards

Variable

A named storage location (placeholder) for a value a program needs, such as input, totals, counts, or intermediate results.

13
New cards

Abstraction

A way to manage complexity by using a simplified representation (like a variable or procedure) without needing low-level storage details.

14
New cards

Data type

A category of values (e.g., numbers, booleans, strings, lists) that affects what operations are meaningful.

15
New cards

Boolean

A value that is either true or false; used for decisions and conditions.

16
New cards

String

Text data: a series of characters in quotation marks; digits inside a string are treated as text, not numbers.

17
New cards

Concatenation

Joining strings together to form a longer string.

18
New cards

List

An ordered collection of elements (items) used to store and work with multiple related values.

19
New cards

MOD

An operator that returns the remainder from division (a MOD b); often used for even/odd checks and repeating patterns.

20
New cards

LENGTH(list)

A built-in operation that returns the number of elements in a list; used to determine valid indices and loop bounds.

21
New cards

INSERT

A list operation that inserts an element at a specific position, shifting elements to the right.

22
New cards

APPEND

A list operation that adds an element to the end of a list, increasing the list size by one.

23
New cards

REMOVE

A list operation that deletes an element at a position, shifting remaining elements left and decreasing list size by one.

24
New cards

List traversal

Visiting list elements in a systematic way (often first to last) to compute totals, find max/min, filter, search, etc.

25
New cards

FOR EACH loop

A traversal pattern that runs once per element, assigning each element’s value to an iteration variable in turn.

26
New cards

Accumulator

A variable (like sum or count) that is updated repeatedly during a loop to build a running total or other aggregate.

27
New cards

Filtering

Building a new list by keeping only elements that meet a condition (often using APPEND), instead of removing while iterating.

28
New cards

Linear search

A search method that checks each element from start to end until the target is found or the list ends; works on unsorted data.

29
New cards

Binary search

A faster search method that repeatedly halves the search range; requires the data to be sorted.

30
New cards

Divide and conquer

A strategy that solves a problem by repeatedly splitting it into smaller parts; binary search uses this by halving the search space.

31
New cards

Procedure

A named block of code (function) that performs a task and runs only when called; supports decomposition and reuse.

32
New cards

Parameter

An input variable in a procedure definition that receives a value when the procedure is called.

33
New cards

Argument

The actual value passed into a procedure when it is called (the value that fills a parameter).

34
New cards

Return value

A value sent back from a procedure to the caller; more flexible than DISPLAY because it can be stored or used in expressions/conditions.

35
New cards

Scope (local variables)

The region where a variable can be accessed; variables created inside a procedure are typically local unless a shared structure is modified or a value is returned and stored.

36
New cards

Library

A collection of prewritten procedures you can use to save time, improve reliability, and support abstraction.

37
New cards

API (Application Programming Interface)

A defined way for programs to interact with a library or other software; specifies how to request and use its functionality.

38
New cards

RANDOM(a, b)

A built-in operation that returns a random integer from a to b inclusive; used in games, sampling, and simulations.

39
New cards

Simulation

A program that models a real-world process, often using randomness and many trials to estimate behavior or probabilities.

40
New cards

Algorithmic efficiency

How many resources an algorithm uses—especially time (steps) and space (memory)—as input size grows.

41
New cards

Linear time

Efficiency where work grows proportionally with the number of items (often a single pass through a list).

42
New cards

Quadratic time

Efficiency where work grows roughly with the square of the number of items (often from nested loops over the same data).

43
New cards

Nested loops

A loop inside another loop; commonly causes multiplicative growth in operations (often leading to quadratic behavior).

44
New cards

Instance (problem instance)

A specific example of a problem with particular inputs (one concrete case of the general problem).

45
New cards

Decision problem

A problem type where the output is a yes/no answer.

46
New cards

Optimization problem

A problem type that asks for the best solution among many possibilities (e.g., shortest route).

47
New cards

Heuristic approach

A practical method that produces a good-enough solution but is not guaranteed to be optimal.

48
New cards

Decidable problem

A problem for which an algorithm can be written that correctly answers yes/no for all possible inputs.

49
New cards

Undecidable problem

A problem for which no algorithm can correctly answer yes/no for all possible inputs.

50
New cards

Halting Problem

A classic undecidable problem: determining for every program and input whether the program will eventually stop or run forever.

Explore top flashcards

flashcards
faf
40
Updated 956d ago
0.0(0)
flashcards
faf
40
Updated 956d ago
0.0(0)