COMP SCI PRINCIPLES UNIT 5 VOCABULARY

5.0(1)
studied byStudied by 7 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

append

adds a value to the end of a list

2
New cards

insert

adds a value into a list at index i, moving down all other items at and after i in the list

3
New cards

parameters

input variables for a procedure

4
New cards

arguments

specify the values of the parameters when a procedure is called

5
New cards

length

the number of elements currently in a given list

6
New cards

index

the number or position of an element in the list

7
New cards

parallel lists

two or more lists that are setup to correspond based on the index location of the data in the lists allowing the data in the lists to be processed at the same time

8
New cards

binary search

a search algorithm that repeatedly divides a sorted list to narrow in on the searched-for item

9
New cards

distributed computing

a computational model in which multiple networked computers are used to run a program

10
New cards

instance of a problem

includes specific input; for example, sorting is a problem, and sorting the list (2, 3, 1, 7) is…

11
New cards

parallel computing

a computational model where a problem or a program is broken into multiple smaller sequential computing operations some of which are performed simultaneously in parallel (usually one on computer with multiple processors but it could also use multiple computers)

12
New cards

sorting algorithm

an algorithm that puts a list into alphabetic or numeric order

13
New cards

unreasonable time

exponential time

14
New cards

decidable problems

problems in which an algorithm can be constructed to answer ‘yes’ or ‘no’ for all inputs (ex. “is the number even?”)

15
New cards

efficiency

how well an algorithm uses time and memory/space resources, CPU & RAM

16
New cards

linear/sequential search

a search algorithm that checks every element in a list from the start to the end of the list to find an item

17
New cards

reasonable time

polynomial time

18
New cards

speedup

for a parallel solution it is measured in the time it took to complete the task sequentially divided by the time it took to complete the task when done in parallel

19
New cards

decision problem

a problem that has a yes or no answer

20
New cards

heuristic algorithm

an algorithm that finds an approximate solution for a hard problem; helpful for finding a solution in a reasonable amount of time

21
New cards

optimization problem

a problem with the goal of finding the best (optimal) solution among many

22
New cards

sequential computing

a computational model in which operations are performed in order - one at a time - on one processor or computer

23
New cards

undecidable problems

have no algorithm that can be constructed that always leads to a correct yes-or-no answer

24
New cards

brute force

solved by trial and error; trying every possible option

25
New cards

more efficient

usually means it runs faster or uses less space

26
New cards

intractable

a computational problem can be this if the only known way to solve the problem depends on an exponential algorithm

27
New cards

intractable problems

problem that are practically impossible to solve in a reasonable time; there are known algorithmic solutions, but the algorithms are too inefficient to solve the problem when the number of inputs grow large

28
New cards

The Halting Problem

the undecidable problem of determining whether a computer program will halt (produce an answer) at some point or loop forever on a given input

29
New cards

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