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

Business Law Case Scenario: Ashley met Adam at a party and after a couple of drinks;...
Business Law Case Scenario: Ashley met Adam at a party and after a couple of drinks; Ashley found out that Adam is in the business of selling education products. Compare and contrast the different liabilities for Ashley and Adam in each of the following different situations, where Ashley is buying, and Adam is selling and they are about to or have entered into a contract. Q# a. Both parties discussed their intentions and Ashley stated what kind of education products...
You are in a reunion of high school classmates. There is much food, and the drinks...
You are in a reunion of high school classmates. There is much food, and the drinks flow freely. Many of your classmates join the sciences and engineering fields; some have become doctors, others are lawyers, and still other are entrepreneurs. You alone joined the accountancy profession. Consider the following: 1. Gelai, a classmate since grade school (now a doctor) commended on your line of work: " I don't know anything about how an auditor perform his/her work. It seems that...
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.
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...
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.
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT