CSCI 246 - Lesson 1 Quiz Question Draw an arrow diagram for the - - PowerPoint PPT Presentation

csci 246 lesson 1 quiz question
SMART_READER_LITE
LIVE PREVIEW

CSCI 246 - Lesson 1 Quiz Question Draw an arrow diagram for the - - PowerPoint PPT Presentation

CSCI 246 - Lesson 1 Quiz Question Draw an arrow diagram for the following relation: A = {1,2,3} B = {a,b,c} R = {(1,a), (a,b), (2, c), (3, a)} Lesson 1 Review Logical Statements Universal Existential Conditional Sets Roster Notation


slide-1
SLIDE 1

CSCI 246 - Lesson 1

slide-2
SLIDE 2

Quiz Question

Draw an arrow diagram for the following relation: A = {1,2,3} B = {a,b,c} R = {(1,a), (a,b), (2, c), (3, a)}

slide-3
SLIDE 3

Lesson 1 Review

Logical Statements Universal Existential Conditional Sets Roster Notation Builder Notation Cartesian Product

slide-4
SLIDE 4

Lesson 1 Review

Logical Statements “For every student in the class, that student has studied calculus”

slide-5
SLIDE 5

Lesson 1 Review

Logical Statements “For every student in the class, that student has studied calculus” Universal

slide-6
SLIDE 6

Lesson 1 Review

Logical Statements “There exists a gpa for every student”

slide-7
SLIDE 7

Lesson 1 Review

Logical Statements “There exists a gpa for every student” Existential - Universal

slide-8
SLIDE 8

Lesson 1 Review

Sets Roster Notation Builder Notation

slide-9
SLIDE 9

Lesson 1 Review

Sets S = {Hufflepuff, Gryffindor, Ravenclaw, Slytherin}

slide-10
SLIDE 10

Lesson 1 Review

Sets S = {Hufflepuff, Gryffindor, Ravenclaw, Slytherin} Roster

slide-11
SLIDE 11

Lesson 1 Review

Sets S = {Hufflepuff, Gryffindor, Ravenclaw, Slytherin} How would you write this in set builder notation?

slide-12
SLIDE 12

Lesson 1 Review

Sets S = {Hufflepuff, Gryffindor, Ravenclaw, Slytherin} How would you write this in set builder notation?

slide-13
SLIDE 13

Lesson 1 Review

Cartesian Product A = {a, b} B = {star, moon} AxB = ?

slide-14
SLIDE 14

Lesson 1 Review

Cartesian Product A = {a, b} B = {star, moon} AxB = {(a, star), (a, moon), (b, star), (b, moon)}

slide-15
SLIDE 15

Lesson 1 Review

Cartesian Product A = {a, b} B = {star, moon} AxB = {(a, star), (a, moon), (b, star), (b, moon)} What’s the Cardinality?

slide-16
SLIDE 16

Lesson 1 Review

Cartesian Product A = {a, b} B = {star, moon} AxB = {(a, star), (a, moon), (b, star), (b, moon)} What’s the Cardinality? 4

slide-17
SLIDE 17

Lesson 2 Review

Relations Subsets Arrow Diagrams Functions

slide-18
SLIDE 18

Lesson 2 Review

Relations Subsets Defn: Let A, B be sets, a Relation R is a subset

  • f the cartesian product of AxB
slide-19
SLIDE 19

Lesson 2 Review

Relations Subsets Defn: Let A, B be sets, a Relation R is a subset

  • f the cartesian product of AxB

Set of all numbers

slide-20
SLIDE 20

Lesson 2 Review

Relations Subsets Defn: Let A, B be sets, a Relation R is a subset

  • f the cartesian product of AxB

Set of all numbers R= {(x,y) exists in R^2 | x < y }

slide-21
SLIDE 21

Lesson 2 Review

Relations Path Diagrams A = {1,2,3} B = {a,b,c} R = {(1,a), (a,b), (2, c), (3, a)}

slide-22
SLIDE 22

Lesson 2 Review

Functions Defn: A function f from A (domain) to B (Range) is a relation on A x B s.t.

slide-23
SLIDE 23

Lesson 2 Review

Functions Defn: A function f from A (domain) to B (Range) is a relation on A x B s.t.

  • 1. (A) every x in A there exists (E) in B s.t. (x,y)

exists in f

  • 2. If (x,y) in f and (x,z) in function f, then y = z
slide-24
SLIDE 24

Homework 1 (group)

  • 1. What kind of statement is: “for every cat there

exists a vaccine” ?

  • 2. What kind of set notation is:
  • 3. Write the above set in the opposite notation.
  • 4. Give the cartesian product for: A = {1,2}, B={z,

x}, C = {red, blue}

  • 5. What is the cardinality of the cartesian product

above?

slide-25
SLIDE 25

Homework 1 (group)

  • 6. Give arrow diagram for: XxY (cartesian

product) where: X = {1,2,3}, Y = {enterprise, voyager}

  • 7. Is the above a function?
  • 8. Why or why not?
slide-26
SLIDE 26

Homework 1 (Individual)

  • 1. What type of statement is:
  • 2. Is the set {1,3,5} equal to {1, 5, 3}? Why?
  • 3. Give the elements in the set {x | x is the square
  • f an integer and x<100}
  • 4. Change this set to set builder notation:
  • a. {0, 3, 6, 9, 12}
  • 5. Make an arrow diagram for {(1,3), (0, 0), (2,

6), (4, 12), (3, 9)}.

  • 6. Is this a function? Can you find the relation?