CSE 321 Review Session Dave Bacon.

Slides:



Advertisements
Similar presentations
1.6 Functions. Chapter 1, section 6 Functions notation: f: A B x in A, y in B, f(x) = y. concepts: –domain of f, –codomain of f, –range of f, –f maps.
Advertisements

Conditional Statements
Course Outline. Lecture 1 Learning Objectives  To use set notations  To apply operations (union, intersection) on sets  To define de Morgan’s Laws.
Lecture 19 Exam: Tuesday June14 4-6pm Overview. Disclaimer The following is a only study guide. You need to know all the material treated in class.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Discrete Mathematics Lecture 4 Harper Langston New York University.
Lecture 19 Exam: Tuesday June15 4-6pm Overview. General Remarks Expect more questions than before that test your knowledge of the material. (rather then.
modified from UCI ICS/Math 6D, Fall Sets+Functions-1 Sets “Set”=Unordered collection of Objects “Set Elements”
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
Homework Review notes Complete Worksheet #2. Homework State whether the conditional sentence is true or false 1.If 1 = 0, then 1 = – 1 True F F T.
Valid Arguments Decide if each argument is valid. If the stones are rolling, they are not gathering moss. If the stones are not gathering moss, they are.
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sifth Edition, Mc Graw-Hill, 2007 Chapter 2: Basic Structures: Sets, Functions, Sequences.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
ICS 253: Discrete Structures I
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
Week 7 - Friday.  What did we talk about last time?  Set disproofs  Russell’s paradox  Function basics.
Homework Review notes Complete Worksheet #1. Homework Let A = {a,b,c,d}, B = {a,b,c,d,e}, C = {a,d}, D = {b, c} Describe any subset relationships. 1.
Chapter 2 Mathematical preliminaries 2.1 Set, Relation and Functions 2.2 Proof Methods 2.3 Logarithms 2.4 Floor and Ceiling Functions 2.5 Factorial and.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
321 Final Review. HW9 #2 Suppose that we flip a coin until either it comes up tails twice or we have flipped it six times. What is the expected number.
CSE 2353 – October 1 st 2003 Functions. For Real Numbers F: R->R –f(x) = 7x + 5 –f(x) = sin(x)
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
Language: Set of Strings
CHAPTER 3 FUZZY RELATION and COMPOSITION. 3.1 Crisp relation Product set Definition (Product set) Let A and B be two non-empty sets, the product.
Mathematical Preliminaries
Sets and Subsets Set A set is a collection of well-defined objects (elements/members). The elements of the set are said to belong to (or be contained in)
A Brief Summary for Exam 2 Subject Topics Number theory (sections ) –Prime numbers Definition Relative prime Fundamental theorem of arithmetic.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
Basic Structures: Sets, Functions, Sequences, and Sums.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
2007 D iscrete The foundations C ounting theory N umber theory G raphs & trees structure s
CSci 2011 Discrete Mathematics Lecture 9, 10
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
CSCI 115 Course Review.
CMSC250 S ECTIONS 0303 & 0304 M IDTERM R EVIEW Sri Kankanahalli Discussion 10: 9 March 2016 Office Hrs: Mon. and Wed. 4-6PM AVW 1112.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
English for Economic Informatics I Tomáš Foltýnek Theoretical Foundations of Informatics.
Chapter 0 Discrete Mathematics 1. A collection of objects called elements; no repetition or order. A = {a 1, …, a n } or {a 1, a 2, …} N = {0, 1, 2, …}{1,
Chapter 1 Logic and proofs
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Review: Discrete Mathematics and Its Applications
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Discrete Mathematics Lecture 6
Discrete Mathematics Lecture 3 (and 4)
CSCE 355 Foundations of Computation
Discrete Mathematics Lecture 7
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
CS201: Data Structures and Discrete Mathematics I
CSCE 355 Foundations of Computation
Lecture 7 Functions.
CS 280 Midterm Review.
Propositional Logic Defining Propositional Logic
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSCI-2400 Models of Computation.
A Brief Summary for Exam 1
Sungho Kang Yonsei University
Review: Discrete Mathematics and Its Applications
MA/CSSE 474 More Math Review Theory of Computation
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Presentation transcript:

CSE 321 Review Session Dave Bacon

Final 1 hour, 50 minutes. Closed book. (You can bring a calculator.) 11 Problems. ~3 problems from before midterm material. Rest from after midterm.

Basic Logic Basic boolean logic Conditional, converse, contrapositive, inverse Tautology, contradiction, contingency You will be given a list of logical equivalences Example problem: Show that (pq)(pq) is a tautology

Predicates and Qualifiers Universal quantifier, For all Existential quantifier, There exists Negating, translating to sentences, nesting, showing equivalence Example:

Rules of Inference, Proofs We’ll provide a list. Know how to use them to prove statements. Rules of Inference for nested qualifiers (Universal instantiation, etc.) Proof methods, Direct proof, Proof by Contraposition, Proofs by Contradiction

Sets Definition of set. Subsets. Empty set. What it means for two sets to be equal. Power Set Cartesian product of sets Union of sets, intersection of sets, difference of sets, complement of a set Set identities. Example:

Functions Domain, codomain. Image, preimage. Range. One-to-one (injective). Onto (surjective). One-to-one correspondence (bijection) Composing functions. Inverse of a function. Example question: f:Z->Z such that f(x)=x2. Is one-to-one? Is Onto?

Functions Domain, codomain. Image, preimage. Range. One-to-one (injective). Onto (surjective). One-to-one correspondence (bijection) Composing functions. Inverse of a function. Example question: f:Z->Z such that f(x)=x2. Is one-to-one? Is Onto?

Primes, and GCD Prime, composite. Fundamental theorem of arithmetic. Greatest common divisor. Least common multiple. Relatively prime. Representing numbers in a base. Modular arithametic. When does an inverse exist? Modular exponentiation. The Euclidean algorithm.

Induction Basic inductive proof: Basis step: Verify P(1) is true. Inductive hypothesis: P(k) Inductie step: Show P(k)->P(k+1) is true (for all positive k) Strong induction. Structural induction. Recursively defined sets. Example:

Basics of Counting Sum rule, product rule. How many bitstrings of length ten either begin with a single 0 or end with a single 1, but not both?

Pigeon Hole Pigeons, holes, function from pigeon to hole. Standard pigeon hole principle, Generalized pigeon hole principle

Permutations Selecting k objects in order from a set of size n. P(n,r)=n!/(n-r)! Example: How many permutations of the letters ABCDEFGH contain ABC?

Combinations Selecting k objects from a set of size n. C(n,r)=n!/[(n-r)!r!]. Example: How many ways are there to select five players from a 10-member tennis team to make a trip to another school?

Binomial Theorem Know it! Binomial coefficients. Combinatorial proof. Example:

Probability Uniform probability Pr(E)=|E|/|S|. Reduces to counting. Pr(E)=1-Pr(E) Example: What is the probability that a postitive integer selected at random from the set of postive integers not exceeding 100 is divisble by either 2 or 5?

Conditional Probability Example: What is the conditional probability that a family with two children has two boys, given that they have at least one boy? Assume BB, BG, GB, GG are equally likely.

More Probability Independence Bernoulli trials Birthday paradox Bayes Theorem

Random Variables, Expected Value What is a random variable? Two views (function or induced distribution.) Expected value of random variable. Variance. Linearity of expected value. Independent random variables. Example: A coin is flipped until it comes up tails. What is the expected number of flips until this coin comes up tails?

Relations Definition. Digraph form. Reflexive, symmetric, anti-symmetric, transitive Equivalence relation, equivalence class. Closures. Example: Let R be a relation on integers, such that (x,y) in R iff x does not equal y. Is R reflexive? Symmetric? Transitive?

Graphs Basic definitions. Directed, undirected. Simple. Multigraph. Psuedograph. Degree of vertex. Handshaking theorem. Bipartite graphs. Connectivity. Paths. Simple paths. Euler paths. Circuits. Euler circuits. Hamilton paths. Hamilton circuits. Constructive algorithm for Euler circuits/paths. Example: Does the following graph have a Euler circuit? If so construct one.