Mention what is cut (!) in prolog and what is the advantage of cut and negation?
Answers
Answered by
0
Explanation:
The cut, in Prolog, is a goal, written as !, which always succeeds, but cannot be backtracked. It is best used to prevent unwanted backtracking, including the finding of extra solutions by Prolog and to avoid unnecessary computations. The cut should be used sparingly.
Similar questions
Math,
5 months ago
Math,
5 months ago
English,
9 months ago
Math,
9 months ago
Computer Science,
1 year ago