Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
Answer Posted / chaitanya
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
Through cut, we can often improve the efficiency of the program
We can specify exclusive rules using cut
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain List of artificial intelligence projects?
Explain List of programming languages for artificial intelligence?
What is the output of the given statement? * (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author))) * (defclass computer-article (article) ()) * (defclass business-article (article) ()) * (defclass political-article (article) ()) * (setf articles (list (make-instance ‘business-article :title “Memory Prices down”))) a) Business article b) Political article c) Business article
What are the different nlp tasks deep learning can be applied?
What does the language of fopl consist of?