InterviewSolution
Saved Bookmarks
| 1. |
Mention What Is Cut (!) In Prolog And What Is The Advantage Of ‘cut’ And ‘negation’? |
|
Answer» Cut function is USED in Prolog when you want to restrict Prolog from backtracking into certain choicepoints or subgoals, either because the alternatives would give wrong solutions or for efficiency REASONS. Advantage of using cut in Prolog is :
Cut function is used in Prolog when you want to restrict Prolog from backtracking into certain choicepoints or subgoals, either because the alternatives would give wrong solutions or for efficiency reasons. Advantage of using cut in Prolog is : |
|