1 / 13

CSE 321 Section 1

Determine if it is safe to hike on a trail based on the presence of ripe berries and grizzly bear sightings. Analyze the logical statements and construct truth tables.

bchadwick
Download Presentation

CSE 321 Section 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE 321 Section 1

  2. Draw a picture of yourself • Click on the envelope with wings to submit

  3. Berries are ripe along the trail, but grizzly bears have not been seen in the area. • p: grizzly bears have been seen in the area • q: hiking is safe on the trail • r: berries are ripe along the trail r and not p

  4. Grizzly bears have not been seen in the area and hiking on the trail is safe, but berries are ripe along the trail. • p: grizzly bears have been seen in the area • q: hiking is safe on the trail • r: berries are ripe along the trail Not p and q and r

  5. If berries are ripe along the trail, hiking is safe if and only if grizzly bears have not been seen in the area • p: grizzly bears have been seen in the area • q: hiking is safe on the trail • r: berries are ripe along the trail R->(p<->q)

  6. It is not safe to hike on the trail, but grizzly bears have not been seen in the area and the berries along the trail are ripe. • p: grizzly bears have been seen in the area • q: hiking is safe on the trail • r: berries are ripe along the trail Not q and not p and r

  7. For hiking on the trail to be safe, it is necessary but not sufficient that berries not be ripe along the trail and for grizzly bears not to have been seen in the area • p: grizzly bears have been seen in the area • q: hiking is safe on the trail • r: berries are ripe along the trail (q->(not r and not p))and not ((not r and not p)->q)

  8. Inclusive or exclusive? • Coffee or tea comes with dinner • A password must have at least three digits or be at least eight characters long. • To take discrete mathematics, you must have taken calculus or a course in computer science. • You can pay using US dollars or euros. e, I, I, either

  9. To get tenure as a professor, it is sufficient to be world-famous. • Rewrite in the form “if p then q” in English. If you are world famous, then you will get tenure as a professor.

  10. It is necessary to walk 8 miles to get to the top of Long’s Peak. • Rewrite in the form “if p then q” in English. If you get to the top of Long’s Peak, then you must have walked 8 miles

  11. Your guarantee is good only if you bought your CD player less than 90 days ago. • Rewrite in the form “if p then q” in English. If your guarantee is good, then you must have bought your CD player less than 90 days ago.

  12. Construct the truth table forp→(¬qvr) TTF->F, all others true

  13. Construct the truth table for (p→q)v(¬p→r) All true

More Related