Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
Answer / 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 |
What is the output of the given statement in LISP? * (Setf part-bins (make-array ‘(4))) a) #Done b) #4 c) #(0 0 0 0) d) None of the mentioned
Explain what is LISP constants?
Which is uses their arguments to build intermediate forms and evaluating them to produce a value? a) Backquote b) Macros c) List d) Procedures
What are the variables that are bound and that have values assigned to them? a) Data b) Variable c) Parameters d) None of the mentioned
What is the programming structure for LISP?
Explain what is CLOS in LISP? What are the goals of the common lisp object system?
Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming
Which is used to build the lisp procedures?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
Explain what is List structures in Prolog?
How many items are available in mapping primitives are there? a) 3 b) 4 c) 5 d) 6
Which is used to build the lisp procedures? a) Data b) Primitives c) Definition d) None of the mentioned
AI Algorithms (74)
AI Natural Language Processing (96)
AI Knowledge Representation Reasoning (12)
AI Robotics (183)
AI Computer Vision (13)
AI Neural Networks (66)
AI Fuzzy Logic (31)
AI Games (8)
AI Languages (141)
AI Tools (11)
AI Machine Learning (659)
Data Science (671)
Data Mining (120)
AI Deep Learning (111)
Generative AI (153)
AI Frameworks Libraries (197)
AI Ethics Safety (100)
AI Applications (427)
AI General (197)
AI AllOther (6)