Cut! Flashcards

1
Q

Two ways to limit choice points to control backtracking

A

107

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

Explain the semantics of cut

A

108-111

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

See split/3 – what does it do?

split([],[],[]).
split([H|T],[H|L],R) :H < 5, split(T,L,R).
split([H|T],L,[H|R]) :H >= 5, split(T,L,R).

A

112

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

What is a green cut?

A

113

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

Logical meaning of
p :- a, b.
p :- c.

What about p :- a, !, b. p :- c?

A

114

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