APCSP Unit 4 Vocab List
Append (Re: Lists)
Added an elements to the end of a list
Arguments (Re: Parameters)
specifies the values of the parameters when a procedure is called
Index (Re: Lists)
A data structure within a list that gives each element value and position (making it easier to locate it within the index)
Insert (Re: Lists)
To add an element to a data structure that already exists (such as an index or list) and assign to a position and value to a specific place (not automatically brought to top or bottom)
Length (Re: Lists)
How many elements are in a list
parallel lists
Two different lists that organize the same information in different ways and categories (but to the same elements)
Parameters
input variables for a procedure.
binary search
a search algorithm that repeatedly divides a sorted list to narrow in on the searched-for item
decidable problems
problems in which an algorithm can be constructed to answer 'yes' or 'no' for all inputs
distributed computing
a computational model in which multiple networked computers are used to run a program
Efficiency (Re: algorithms)
how well an algorithm uses time and memory/space resources, CPU and RAM
heuristic algorithm
finds an approximate solution for a hard problem; helpful for finding a solution in a reasonable amount of time
linear or sequential search
an algorithm that checks every element in a list from the start to the end of the list to find an item.
parallel computing
a computational model where a problem/program is broken into multiple smaller sequential computing operations some of which are performed simultaneously in parallel (on multiple processors or computers)
sequential computing
a computational model in which operations are performed in order, one at a time on one processor or computer
Bubble Sort
One item from the list is compared with the rest until an item that is greater than it replaces it (goes on until list is sorted)
Bucket Sorting
Algorithm in which lists are divided into smaller, specialized categories, and by merged together into a specific ordered list
Merge Sort
Lists are split into pair and compared as to which is great (eventually the pairs are compared with each other until it becomes one list)
undecidable problems
have no algorithm that can be constructed that always leads to a correct yes-or-no answer
brute force
solve by trial and error; trying every possible option
Intractable
(used to describe a problem) not easily uncontrolled and has many factors, therefore there is not efficient way to solve it (usually solved by brute force)
intractable problems
practically impossible to solve in a < b
The Halting Problem
The undecidable problem of determining whether a computer program will produce an answer at some point or loop forever on a given input
The Traveling Salesman Problem
Given a list of cities and the distances between them, find the shortest path visiting each city once and returning to the start.