AP CSP Pages 92-115 Quiz

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

elegance

the algorithmic equivalent of style

2
New cards

efficiency

An algorithm’s careful use of resources

3
New cards

benchmarking

Running a program on many data sets to be sure its performance falls within required limits; timing the same algorithm on two different machines

4
New cards

comparing machines’ sensitivities

what are benchmarks useful for

5
New cards

analysis of algorithms

study of the efficiency of algorithms

6
New cards

order of magnitude n

anything that varies as a constant times n (and whose graph follows the basic shape of n)

7
New cards

Searching and Sorting

2 problems that a sequential search algorithm does

8
New cards

Selection Sort Algorithm

an algorithm that sorts a list of values into a particular order

9
New cards

order of magnitude n²

an algorithm that does cn² work for any constant c

10
New cards

flops

a unit of measure of processor speed: floating-point operations per second

11
New cards

Correctness, Usability, Efficiency, Elegance, Ease of Understanding

What features should an algorithm have

12
New cards

program maintenance

the process of adapting and improving an existing software product

13
New cards

Space efficiency

judged by the amount of information the algorithm must store in the computer’s memory to do its job, in addition to the initial data on which the algorithm is operating.

14
New cards

cross purposes

What do elegance and ease of understanding work at?

15
New cards
  1. Computer Used

  2. Phone Book length

  3. Number searched for

What 3 things could affect the timing of a sequential search algorithm?

16
New cards

machine speed or variations in input data than the efficiency (or lack thereof) of the algorithm itself.

What would timing the running of an algorithm more likely to reflect?

17
New cards

The number of times a unit of work in an algorithm is executed is calculated

How is time efficiency measured

18
New cards

Comparison of the NUMBER being searched for against a single phone number in the list

What is the unit of work in the sequential search algorithm

19
New cards

small tasks that take a single instruction to execute

what are peripheral tasks

20
New cards

the same

How much work does the selection sort algorithm do for each arrangement of numbers

21
New cards

Exchange and compare numbers

what two things does the selection sort algorithm do

22
New cards

3

how many storage locations are needed for exchanging two numbers

23
New cards

(1, 1)

at what point do order of magnitude n and n² cross