1/22
Looks like no tags are added yet.
What is an index in the context of a list in SNAP and the AP CSP exam?
A value's unique position on a list, with the first item stored at index 1.
What is an element?
A data point that is stored in a list; a single part of a larger group.
What is a list?
A data structure that stores one or more similar types of values in a single value.
What does traversing a list mean?
Performing the same operation on each item of the list, sequentially.
What does it mean to append in the context of lists?
To add an element to the end of a list.
How do you remove an element from a list?
By deleting it from the list.
What does it mean to insert an element into a list?
To add an element at a certain index in the list.
What is replacing an element in a list?
Updating the contents of an element.
What is iteration?
Repetition of a process.
What is a for each loop?
A control structure designed to iterate over each element of a list and perform the same operation on each.
What is a loop?
The action of doing something over and over again.
What is linear search?
An algorithm that iterates through each item in a list until it finds the target value.
What is a synonym for linear search?
Sequential search.
What does a return statement do?
Terminates the execution of a procedure and returns to the calling procedure, possibly returning a value.
What is a temporary variable?
A variable that has a short lifetime, usually holding data that will be discarded soon.
What is binary search?
An algorithm that searches a sorted list for a value by repeatedly splitting the list in half.
What is algorithmic efficiency?
A measure of execution time and memory usage while still yielding a correct answer.
What is an array?
A type of list or data structure that stores a collection of data.
What is a heuristic?
A technique that guides an algorithm to find good choices, avoiding exhaustive searches.
What is an undecidable problem?
A problem that may have some instances with algorithmic solutions but lacks a solution for all instances.
What is a decidable problem?
A decision problem for which an algorithm can be written to produce correct outputs for all inputs.
What is a library in programming?
A software library contains existing procedures that may be used in creating new programs.
What is an API?
Application Program Interfaces (API) provide details or specifications on how procedures behave and can be used.