Machine-translated by Google. Questions are authored in English.
Top

Inference and Resolution Questions and Answers

Answer: C

A rule stating that ancestor of follows from ancestor of will regenerate the same goal indefinitely unless loop detection or a tabling mechanism is present. Prolog programmers learn to order clauses to avoid it. Rule order is fixed, unbounded derivation is a forward chaining hazard, and proof length is secondary. A failure mode arising from the interaction of a search strategy with a natural way of writing rules is one that a language's users must be taught rather than protected from.

Please log in or register to report this question.

Answer: D

Memoising subgoals and their answers both prevents infinite loops on left recursive rules and avoids repeating work, which makes a whole class of natural programs terminate. It is the logic programming analogue of dynamic programming. Storage layout, indexing and presentation are different matters. Adding memoisation to a search that repeats subproblems is a general remedy and it applies here with unusual force.

Please log in or register to report this question.

Answer: A

Each rule matching a goal gives a branch, and the conditions give the successors, so proving a goal is a search whose nodes are subgoal sets. Prolog searches it depth first. Direct computation and independence are false. Recognising a familiar activity as an instance of search brings the whole vocabulary of completeness, ordering and pruning to bear on it, which is more useful than treating it as a separate topic.

Please log in or register to report this question.

Answer: B

Working backwards from a negated goal, resolving against definite clauses, is exactly what backward chaining does, which is why Prolog is described as a resolution based language. The restriction to definite clauses is what makes the search linear rather than exploding. The other options misstate the relationship. Seeing two apparently different procedures as one restricted to a fragment is what allows results about the general case to be applied to the special one.

Please log in or register to report this question.

Answer: C

The cut commits the search to the choices made so far, which improves efficiency and destroys the declarative reading, since the program's meaning now depends on the search order. Clause removal, depth limits and syntax are different notions. A construct that buys performance by breaking the correspondence between what a program says and what it does is a genuine engineering compromise, and the debate over its use has run for decades. Naming the cost of a choice alongside its benefit is what turns a fact into a design decision.

Please log in or register to report this question.

Answer: D

With alternatives discarded, whether a goal succeeds depends on which clauses were tried first, so the logical reading no longer predicts the behaviour. Programs using cut must be read procedurally. Negation is a separate feature, some cuts do have logical readings, and no clauses are deleted. A feature whose cost is the loss of the language's principal claim is worth using sparingly and documenting carefully wherever it appears.

Please log in or register to report this question.

Answer: A

The rule succeeds for not p exactly when the attempt to prove p fails finitely, which implements the closed world assumption operationally. It is sound only when the program is complete about p. The third option overstates it slightly by ignoring the finiteness requirement, and the others misdescribe it. An operational rule standing in for a semantic assumption must be used only where the assumption holds, which is a condition rarely checked in practice. The quantity that varies and the quantity that does not are worth naming before any substitution is attempted.

Please log in or register to report this question.

Answer: B

If the attempt to prove p runs forever, the system has established nothing, and concluding not p would be unjustified. Implementations that time out and report success for the negation are unsound in exactly this way. Memory, goal identity and syntax are not the issue. A soundness condition that depends on the behaviour of a search, rather than on the logic, is easy to violate and hard to notice.

Please log in or register to report this question.

Answer: C

Both chaining directions are sound and complete for definite clauses and run in time linear in the knowledge base, which is why this fragment underpins so much practical work. Resolution is also complete but the specialised procedures are far more efficient. The pessimistic options are wrong. A fragment combining adequate expressiveness with linear inference is the sweet spot the whole expressiveness against tractability discussion has been circling. The shared properties explain why these belong to one family, and the differences explain why more than one exists.

Please log in or register to report this question.

Answer: D

Resolution supplies one rule sufficient for refutation, and the strategies, orderings and redundancy elimination around it are what turn an unusable search into a working tool. Tractable fragments and satisfiability solvers cover much of the rest. Neither pessimism nor unqualified optimism is warranted. That the rule is simple and everything around it is engineering is a fair summary not only of this topic but of much of the field.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Inference and Resolution Questions and Answers || Inference and Resolution MCQ Questions and Answers || Inference and Resolution GK Questions and Answers || Inference and Resolution GK MCQ Questions || Inference and Resolution Multiple Choice Questions and Answers || Inference and Resolution GK || GK on Inference and Resolution || Artificial Intelligence Questions and Answers || Artificial Intelligence MCQ Questions and Answers || Artificial Intelligence GK Questions and Answers || GK on Artificial Intelligence