Comprehensive Guide to Big Idea 3: Algorithms and Programming

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/52

Last updated 6:32 AM on 3/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

53 Terms

1
New cards

Variable

An abstract placeholder used to store data values in programming.

2
New cards

Data Abstraction

Provides the lowest level of data abstraction using variable names instead of binary memory addresses.

3
New cards

Data Type

A specification of the type of data a variable can hold, such as integer, string or boolean.

4
New cards

Integer

Whole numbers, e.g., 5 or -10.

5
New cards

Float

Numbers that include decimals, e.g., 3.14 or 0.05.

6
New cards

String

An ordered sequence of characters enclosed in quotes, e.g., 'Hello World'.

7
New cards

Boolean

Values that can be true or false.

8
New cards

Assignment

The process of setting a variable's value, typically using the assignment operator.

9
New cards

Left-facing Arrow Notation

A notation used in AP CSP to assign values, e.g., variable ← expression.

10
New cards

Destructive Assignment

Assigning a new value that completely overwrites the old value.

11
New cards

Directional Assignment

Data moves from right to left in assignment operations.

12
New cards

Swap Pattern

A technique for exchanging values of two variables using a temporary variable.

13
New cards

List

An ordered collection of elements that allows referring to a set of data with a single variable name.

14
New cards

Element

An individual value within a list.

15
New cards

Index

The position of an element in a list, with 1-based indexing in AP CSP.

16
New cards

INSERT method

A list operation that adds a value at a specific index, shifting existing elements.

17
New cards

APPEND method

A list operation that adds a value to the end of the list.

18
New cards

REMOVE method

A list operation that deletes an item at a specific index.

19
New cards

LENGTH method

A list operation that returns the number of items in the list.

20
New cards

Concatenation

Joining two strings together.

21
New cards

Sequencing

Executing algorithms in the order given by the code statements.

22
New cards

Selection

Executing parts of an algorithm based on a condition being true or false.

23
New cards

Boolean Expression

The condition tested within an IF statement.

24
New cards

Relational Operators

Operators used to compare values, such as =, ≠, >, <.

25
New cards

Nested Conditionals

Placing one IF statement inside another for complex logic.

26
New cards

Iteration

A repetitive portion of an algorithm that executes multiple times.

27
New cards

REPEAT n TIMES

A loop that runs a block of code exactly n times.

28
New cards

REPEAT UNTIL (condition)

An indefinite loop that runs while the condition is false.

29
New cards

FOR EACH item IN list

A loop that automatically iterates over each element in a list.

30
New cards

Algorithm

A finite set of instructions to accomplish a specific task.

31
New cards

Sum/Average Algorithm

An algorithm that calculates the total or average value from a list.

32
New cards

Max/Min Algorithm

An algorithm that finds the maximum or minimum value within a list.

33
New cards

Linear Search

A method of finding a target in a list by checking each item sequentially.

34
New cards

Binary Search

A method of searching a sorted list by repeatedly dividing the search interval in half.

35
New cards

Procedural Abstraction

A method of simplifying code by using named procedures to encapsulate functionality.

36
New cards

Parameter

A variable defined in a procedure that accepts input values.

37
New cards

Argument

The actual value passed to a procedure when it is invoked.

38
New cards

Library

A collection of useful procedures for programming.

39
New cards

API (Application Programming Interface)

A specification that outlines the expected behavior of procedures in a library.

40
New cards

Randomness

Non-deterministic behavior often used in simulations and cryptography.

41
New cards

RANDOM(a, b)

A procedure that returns a random integer between a and b, inclusive.

42
New cards

Simulation

A program that mimics real-world events or systems.

43
New cards

Algorithm Efficiency

Measured by the number of steps required as a function of input size.

44
New cards

Reasonable Time

Polynomial time complexity, where the number of steps is a polynomial function of input size.

45
New cards

Unreasonable Time

Exponential or factorial time complexity, which grows impractically large for small increases in input size.

46
New cards

Heuristic

An approach that produces an approximate solution when exact solutions are too slow.

47
New cards

Decidable Problem

A problem for which an algorithm can be constructed that produces a correct yes-or-no answer for every input.

48
New cards

Undecidable Problem

A problem for which no algorithm can provide a correct yes-or-no answer for all possible inputs.

49
New cards

Common Mistake: 0-based vs. 1-based Indexing

Mistake of assuming list[1] is the second item instead of the first.

50
New cards

Common Mistake: Robot Orientation

Not tracking the robot's current heading, leading to erroneous movements.

51
New cards

Common Mistake: REPEAT UNTIL Logic

Misunderstanding the loop's condition leading to unintended behavior.

52
New cards

Common Mistake: Binary Search Requirements

Attempting binary search on unsorted data, leading to failure.

53
New cards

Common Mistake: Swapping Variables

Incorrectly swapping variable values without using a temporary variable.

Explore top flashcards

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