Question

In: Computer Science

[(Food ^ Drinks => Party) v (Drinks ^ Dance => Party)] => (Party => Drinks) Convert...

[(Food ^ Drinks => Party) v (Drinks ^ Dance => Party)] => (Party => Drinks)

Convert the left-hand side of this formula (in the brackets) into CNF and then into clauses. Show all steps of deriving the clauses.

  1. Convert the right-hand side of this formula (not in the brackets) into CNF and then into clauses. Show all steps of deriving the clauses.

Solutions

Expert Solution

(A^B => C) ≡ (~(A^B) v C) ≡ (~A v ~B v C) .....(1) [Since (P=>Q) ≡ (~P v Q) and ~(P^Q) ≡ (~P v ~Q)]

LHS of formula:

[(Food ^ Drinks => Party) v (Drinks ^ Dance => Party)]

≡ [ ~Food v ~Drinks v Party v ~Drinks v ~Dance v Party] .....(From (1))

≡ [~Food v ~Drinks v ~Drinks v Party] [Since P v P ≡ P]

Thus there is only one clause : [~Food v ~Drinks v ~Drinks v Party]

RHS of formula:

Party => Drinks

≡ ~Party v Drinks [Since (P => Q) ≡ (~P v Q)]

The above is the CNF form and the clause is ~Party v Drinks.

If required, the clause can be converted into canonical normal form.

≡ (~Party v Drinks) ^ T [Since A ^ T ≡ A]

≡ (~Party v Drinks) ^ (~Dance v Dance) [Since ~A v A ≡ True]

≡ (~Party v Drinks v ~Dance) ^ (~Party v Drinks v Dance) [Distributive Law]

≡ ((~Party v Drinks v ~Dance) ^ T) ^ ((~Party v Drinks v Dance) ^ T)

≡ ((~Party v Drinks v ~Dance) ^ (~Food v Food)) ^ ((~Party v Drinks v Dance) ^ (~Food v Food))

≡ ((~Party v Drinks v ~Dance) ^ (~Food v Food)) ^ ((~Party v Drinks v Dance) ^ (~Food v Food))

≡ (~Party v Drinks v ~Dance v ~Food) ^ (~Party v Drinks v ~Dance v Food) ^ (~Party v Drinks v Dance v ~Food) ^ (~Party v Drinks v Dance v Food)

The above is the canonical CNF form with 4 clauses.


Related Solutions

Identify several problems energy drinks such as V energy may face, especially in Australia.
Identify several problems energy drinks such as V energy may face, especially in Australia.
Write a program in "RISC-V" assembly to convert an ASCII string containing a positive or negative...
Write a program in "RISC-V" assembly to convert an ASCII string containing a positive or negative integer decimal string to an integer. ‘+’ and ‘-’ will appear optionally. And once they appear, they will only appear once in the first byte. If a non-digit character appears in the string, your program should stop and return -1.
Customers at a fast-food restaurant buy both sandwiches and drinks. The mean number of sandwiches is...
Customers at a fast-food restaurant buy both sandwiches and drinks. The mean number of sandwiches is 1.5 with a standard deviation of 0.5. The mean number of drinks is 1.45 with a standard deviation of 0.3. The correlation between the number of sandwiches and drinks purchased by the customer is 0.6. If the profit earned from selling a sandwich is $1.50 and from a drink is $1, what is the expected value and standard deviation of profit made from each...
Each Year the Leadership Class holds a dance to raise money. The dance is rarely well...
Each Year the Leadership Class holds a dance to raise money. The dance is rarely well attended because the sponsor belongs to an older generation that is unfamilier with today's taste in music. The profit, P, made on the dance can be modeled by the function written below. The ticket price, t, is in dollars. P(t) = -16t2 +800t - 4000 P(t) = -16(t-25)2 + 6000 P(t) = -16(t2 -50t +250) 1. The break even point (where profit is zero)...
A dance studio currently charges customers $25 for a half-hour dance lesson. The studio employs a...
A dance studio currently charges customers $25 for a half-hour dance lesson. The studio employs a large number of dance instructors who are paid only for the lessons they give and receive $10 per lesson. The studio currently spends 18,000 per month for rent and could increase its dance space by renting an adjoining unit in its building for an additional 8,000 per month. The studio's current space is sufficient to give ten lessons per hour. Currently the studio is...
A​ fast-food chain sells drinks that they call HUGE. When we take a sample of 49...
A​ fast-food chain sells drinks that they call HUGE. When we take a sample of 49 drinks and weigh​ them, we find that the mean is 38.9 ounces with a standard deviation of 2.8 ounces. a. A technology input menu for calculating a confidence interval requires the sample​ mean, x overbar​, the sample standard​ deviation, Sx, and the sample​ size, n. State how you would fill in these numbers. b. Report the confidence interval in a carefully worded sentence. a....
24. Oligopoly is a common form of big business in America. Automobiles, soft drinks, fast food...
24. Oligopoly is a common form of big business in America. Automobiles, soft drinks, fast food franchises, cigarettes, beer, and cell phone services all fall into the category of oligopoly. a. What are the characteristics of an oligopoly? List and explain the three most important characteristics. b. Many oligopolies are successful in earning economic profit year after year. Identify and explain what characteristic of oligopoly is most responsible for the presence of long-run economic profits. c. Many oligopolies sell differentiated...
Recently there has been discussion in the news about taxing junk food (soft drinks, for example)...
Recently there has been discussion in the news about taxing junk food (soft drinks, for example) in an effort to reduce the incidence of obesity in the U.S. Do you think the demand for junk food is elastic or inelastic with respect to price. Based on your knowledge of the price elasticity of demand, do you think the dead weight loss of a soda/junk-food tax would be relatively large or relatively small? Why? Do you think taxing junk food would...
Recently there has been discussion in the news about taxing junk food (soft drinks, for example)...
Recently there has been discussion in the news about taxing junk food (soft drinks, for example) in an effort to reduce the incidence of obesity in the U.S. Do you think the demand for junk food is elastic or inelastic with respect to price. Based on your knowledge of the price elasticity of demand, do you think the deadweight loss of a soda/junk-food tax would be relatively large or relatively small? Why? Do you think taxing junk food would be...
Convert the following C program into the RISC-V assembly code. You should look up a table...
Convert the following C program into the RISC-V assembly code. You should look up a table to convert the lines manually and you can use "ecall" when appropriate (Don't make it too complicated than it needs to be): #include int main() { int x = 30, y = 17; printf("x * y = "); printf("%d\n", x*y); return 0; }
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT