130 likes | 242 Views
CSCI 1001. overview of. computer science. BOOLEAN LOGIC. what is logic ?. True. False. VS. Proposition. A = Page has “maroon”. B = Page has “gold”. C = Page has “university”. D = Page has “gopher”. E = Page has “alumni”. Compound Proposition. A AND C. B OR D. NOT E.
E N D
CSCI 1001 overview of computer science BOOLEAN LOGIC
what is logic? True False VS
Proposition A = Page has “maroon” B = Page has “gold” C = Page has “university” D = Page has “gopher” E = Page has “alumni”
Compound Proposition A AND C B OR D NOT E
“pages about gophers, but not alumni” “pages about maroon and gold, or gophers” “pages about gophers, but not maroon and gold or university”
IF A THEN B A → B EITHERD OR E D XOR E
“pages about universities, and if they say maroon, they have to say gold” “if the page says university, then it should say gopher or alumni, (but not both)” “Either the page says gopher, but not alumni, or it says maroon and gold”
http://cs1001.us/ Please read section 4.3.2 of the textbook for Wednesday’s lecture.