AP CSP Big Idea 3 Notes: Mastering Procedures, Algorithms, and Modeling

0.0(0)
Studied by 0 people
0%Big Idea 3 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/24

Last updated 3:08 PM 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

25 Terms

1
New cards

Procedure

A named block of code that performs a specific task and can be called (reused) throughout a program.

2
New cards

Abstraction

A way to think about what code does without focusing on how it does it; a procedure name can serve as an abstraction for its underlying steps.

3
New cards

Decomposition

Breaking a large problem into smaller parts, often by creating separate procedures for each subtask.

4
New cards

DRY (Don’t Repeat Yourself)

A programming principle that emphasizes avoiding repeated code by writing logic once (often in a procedure) and reusing it.

5
New cards

Parameter

A placeholder variable in a procedure definition that represents an input the procedure will receive.

6
New cards

Argument

The actual value passed into a procedure when it is called.

7
New cards

Return value

A value sent back by a procedure to the code that called it, often used when the procedure computes a result.

8
New cards

Side effect

A change a procedure makes to something outside itself (e.g., displaying output, updating a list, changing a global variable) instead of or in addition to returning a value.

9
New cards

Local variable

A variable created inside a procedure that generally cannot be accessed outside that procedure.

10
New cards

Scope

The region of a program where a variable can be accessed/used; local variables and parameters typically have scope limited to their procedure.

11
New cards

Selection (IF statement)

A control structure that chooses different actions based on a condition (e.g., IF a score is ≥ 60, count it as passing).

12
New cards

Iteration (looping)

A control structure that repeats steps, such as REPEAT loops or FOR EACH loops that process list elements.

13
New cards

P-I-O-T (Purpose, Inputs, Output, Tests)

A mnemonic for designing procedures: state the Purpose, choose Inputs (parameters), define Output (return/effects), and create Tests (normal and edge cases).

14
New cards

Library

A collection of prewritten code (procedures/functions/classes/constants) that programmers can use instead of implementing everything from scratch.

15
New cards

API (Application Programming Interface)

The “contract” for using a library or service—describes what procedures exist, what inputs they take, what outputs they return, and how to use them correctly.

16
New cards

Mutate (in-place modification)

To change an existing data structure (like a list) directly, rather than returning a new modified copy.

17
New cards

Algorithmic efficiency

How the resources needed by an algorithm grow as input size grows, commonly considering time (steps) and space (memory).

18
New cards

Scalability

How well an algorithm or program continues to work as the input size becomes much larger (e.g., 10 items vs. 10 million).

19
New cards

Linear search

A search algorithm that checks items one by one until it finds the target or reaches the end; works on sorted or unsorted lists.

20
New cards

Binary search

A search algorithm that repeatedly cuts the search range in half to find a target; requires the list to be sorted and typically needs efficient access to the middle element.

21
New cards

Nested loops

A loop inside another loop; often scales poorly because work can grow quickly (e.g., doubling list size can quadruple pair checks).

22
New cards

Undecidable problem

A problem for which no algorithm can be written that always produces a correct yes/no answer for every possible input (a proven limitation, not just “hard”).

23
New cards

Halting Problem

The classic undecidable problem: given a program and an input, determine whether the program will eventually stop or run forever; no algorithm can solve this correctly for all programs/inputs.

24
New cards

Simulation

A computational process that models a real or hypothetical system by representing its state, applying update rules, and repeatedly iterating over time steps to observe outcomes.

25
New cards

Probabilistic (stochastic) simulation

A simulation that uses randomness to model uncertainty or variation; results vary across runs, and more trials typically produce more stable estimates.

Explore top notes

note
AP Music Theory Ultimate Guide
Updated 1072d ago
0.0(0)
note
Human Geography Unit 5
Updated 347d ago
0.0(0)
note
Data Trends
Updated 1149d ago
0.0(0)
note
Fluids: chapter 8
Updated 480d ago
0.0(0)
note
AP Music Theory Ultimate Guide
Updated 1072d ago
0.0(0)
note
Human Geography Unit 5
Updated 347d ago
0.0(0)
note
Data Trends
Updated 1149d ago
0.0(0)
note
Fluids: chapter 8
Updated 480d ago
0.0(0)

Explore top flashcards

flashcards
Frans HCE 11
53
Updated 1094d ago
0.0(0)
flashcards
IMENICE
32
Updated 393d ago
0.0(0)
flashcards
abeka history 10 section 5.1
23
Updated 920d ago
0.0(0)
flashcards
Culture Quiz #2
24
Updated 473d ago
0.0(0)
flashcards
SAT Math Formulas
20
Updated 234d ago
0.0(0)
flashcards
Ap psych unit 1 vocab
36
Updated 933d ago
0.0(0)
flashcards
Frans HCE 11
53
Updated 1094d ago
0.0(0)
flashcards
IMENICE
32
Updated 393d ago
0.0(0)
flashcards
abeka history 10 section 5.1
23
Updated 920d ago
0.0(0)
flashcards
Culture Quiz #2
24
Updated 473d ago
0.0(0)
flashcards
SAT Math Formulas
20
Updated 234d ago
0.0(0)
flashcards
Ap psych unit 1 vocab
36
Updated 933d ago
0.0(0)