TAILIEUCHUNG - Lecture Discrete structures: Chapter 7 - Amer Rasheed

This chapter examine code to determine the run time of various operations. We will introduce machine instructions, we will calculate the run times of: operators +, -, =, +=, ++, etc; control statements if, for, while, do-while, switch; functions; recursive functions. | (CSC 102) Lecture 7 Discrete Structures Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal and informal language Universal conditional Statements Equivalence Form Implicit Qualification Negations Predicates and Quantified statements II Today's Lecture Statements containing “∀ ” and “∃” Nested Quantifiers Relations Universal Instantiation statement Universal Modus Ponens Universal Modus Tollens Quantified form of Converse and Inverse error Interpreting Multiply-Quantified Statements A college cafeteria line has four stations: salads, main courses, desserts, and beverages. The salad station offers a choice of green salad or fruit salad; the main course station offers spaghetti or fish; the dessert station offers pie or cake; and the beverage station offers milk, soda, or coffee. Three students, Uta, Tim, and Yuen, go through the line and make the following choices: Uta: green salad, spaghetti, pie, milk Tim: fruit salad, fish, pie, cake, milk, coffee Yuen: spaghetti, fish, pie, soda These choices are illustrated in Figure Interpreting Multiply-Quantified Statements Write each of following statements informally and find its truth value. a. ∃ an item I such that ∀ students S, S chose I . b. ∃ a student S such that ∀ items I, S chose I . c. ∃ a student S such that ∀ stations Z, ∃ an item I in Z such that S chose I . d. ∀ students S and ∀ stations Z, ∃ an item I in Z such that S chose I . Solution There is an item that was chosen by every student. This is true; every student chose pie. b. There is a student who chose every available item. This is false; no student chose all nine items. c. There is a student who chose at least one item from every station. This is true; both Uta and Tim chose at least one item from every station. d. Every student chose at least one item from every station. This is false; Yuen did not choose a salad. Interpreting Multiply-Quantified Statements Multiple Quantified Statements .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.