Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the problem of deciding whether a propositional logic sentence is true in a given model. a) . Write a recursive algorithm PL-TRUE?(s,m) that returns

Consider the problem of deciding whether a propositional logic sentence is true in a given model.

a). Write a recursive algorithm PL-TRUE?(s,m) that returns true if and only if the sentence s is true in the model m (where m assigns a truth value for every symbol in s). The algorithm should run in time linear in the size of the sentence. (Alternatively, use a version of this function from the online code repository.)

b). Give three examples of sentences that can be determined to be true or false in a partial model that does not specify a truth value for some of the symbols.

c). Show that the truth value (if any) of a sentence in a partial model cannot be determined efficiently in general.

d). Modify your PL-TRUE? algorithm so that it can sometimes judge truth from partial models, while retaining its recursive structure and linear run time. Give three examples of sentences whose truth in a partial model is not detected by your algorithm.

e). Investigate whether the modified algorithm makes TT-ENTAILS? more efficient.

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

Propositional logic is the simplest logic and illustrates basic ideas Its syntax is easily ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Artificial Intelligence A Modern Approach

Authors: Stuart J. Russell and Peter Norvig

2nd Edition

8120323823, 9788120323827, 978-0137903955

More Books

Students also viewed these Databases questions