Arithmetic Flashcards

1
Q

last/2

A

54

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

Arithmetic equality != Unification example. What does “=” mean?

A

55-56

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

Semantics of the IS operator, preconditions

A

57-59

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

What is the result of the query: A is +(*(3,2),4) ?

A

60

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

len/2 without accumulator

A

61

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

Explain why len/2 without acc requires O(N) stack space by using a search tree

A

62

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

len/3 with an accumulator, show that it uses O(1) stack space.

A

63-64

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

Last Call Optimisation conditions and transformation

A

65

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

How would you validate if LCO is taking place

A

66

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