The RAM model Flashcards

(5 cards)

1
Q

What assumptions do we make in the RAM model

A

Infinite RAM
each cell has a unique address
each cell stores one word
finite number of registers

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

what counts as a step in the RAM model

A

a calculation
loading a word in from memory
move a word from register to memory

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

Waht is the cost of an algorithm in terms of run time

A

the number of elementary operations

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

What is the cost of an algorithm in terms of space

A

total number of memory cells used

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