1st 10 Flashcards

1
Q

Worst-case time is important for

A

real time algorithms

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

is the physical implementation of an ADT.
Each operation associated with the ADT is implemented by one or more subroutines in the implementation.

A

Data Structure

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

usually refers to an organization for data in main memory.

A

Data Structures

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

an organization for data on peripheral storage, such as a disk drive.

A

File structure

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

a definition for a data type solely in terms of a set of values and a set of operations on that data type.

Each ADT operation is defined by its blank and blank

A

Abstract Data type (ADT)

inputs and outputs.

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

An ADT manages complexity through

A

abstraction/metaphor or in other terms:
Hierarchies of labels

Ex: transistors then gates then CPU.

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

Data items have both a

blank is the definition of the data item within an ADT.
Ex: Integers in the mathematical sense: +, -, dibide, multiply

implementation of the data item within a data structure.
Ex: 16/32 bit integers, overflow.

A

logical and a physical form.

logical

physical form.

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

The data items of ADT and Data structure are?

A

Logical form and Physical form

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

As n grows, how does T(n) grow?

A

Cost: T(n) = c1n^2+ c^2 steps

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

The best case for my algorithm is n=1 because that is the fastest.” WRONG!

Big-oh refers to a growth rate as blank grows to infinity

Best case is defined for the input of size n that is cheapest among all inputs of size n.

A

n to infinity

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