Computer Science, asked by Ridam780, 9 months ago

Mention what is cut (!) in prolog and what is the advantage of cut and negation?

Answers

Answered by gauravarduino
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