Introduction week 1 Flashcards

1
Q

define algorithm

A

the steps to correctly perform a task that answers a general computational problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

define data structures

A

the ways to store the information needed for the algorithim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

examples of types of data strcutres

A

array
linked list
hash table
binary tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

examples oftypes of confidence testing for programs

A

unit testing
integration testing
validation
user testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

why is run time on one laptop not a great measure of program efficiency

A

different laptops differ in speeds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

when in run time on one laptop a good measure of program efficiency

A

for trying different approaches to the same problem on the one machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

why is measuring how long the fastest or slowest computer takes to run the program a bad test for efficiency

A

computers are always changing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

why is measuring how long it takes for the program to run with the largest input/smallest input a bad way to test efficiency

A

run time varies on input size, so this will tell you very little about the everyday running of the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is the best way to judge efficiency

A

scalability

memory needed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is scalability

A

changing the input size into the program and seeing how long it take

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is constant running time

A

when the input is doubled, the program takes the same amount of time to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is linear running time

A

when the input is doubled, the program takes twice as long to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is constant memory space

A

when the input size is doubled, the program needs the same amount of memory to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is linear memory space

A

when the input size is doubled, the program needs double the amount of memory to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly