Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Class 13: State Machines

David Evans
October 12, 2016
4.4k

Class 13: State Machines

cs2102: Discrete Mathematics
University of Virginia, Fall 2016

See course site for notes:
https://uvacs2102.github.io

David Evans

October 12, 2016
Tweet

Transcript

  1. Class 13: State Machines cs2102: Discrete Mathematics | F16 uvacs2102.github.io

    David Evans | University of Virginia Return Exam 1 Today No problem set due this week! PS6 is due Friday, Oct 21.
  2. M =

  3. State Machine M = (, : × , ) ∈

    ) What does it mean if is total?
  4. State Machine M = (, : × , ) ∈

    ) What does it mean if is not a function?
  5. State Machine M = (, : × , ) ∈

    ) What does it mean if is surjective?
  6. State Machine Executions The execution of a state machine, =

    (, ⊆ ×, ) ∈ ) is a (possibly infinite) sequence of states, () , 3 , … , 5 ) that:
  7. Problem Areas 0 1 2 3 4 5 6 7

    8 >=8 100% 40% 56% 54% 28% 44% 42% 37% 33% >=6 100% 46% 57% 55% 51% 53% 52% 41% 40%
  8. Biggest Issues • To prove by induction, need to state

    a predicate with an induction variable • If a set is empty, any predicate is true for all elements of that set ∷= whatever is here must use n (and that is what you are doing induction on)
  9. Returning Exam 1 Group 1 Group 2 Group 3 Group

    4 aa6.. (Aaron) dav.. (Daniel) kaw.. (Kevin) rcb.. (Rachel) ac5.. (Allison) dc7.. (David) khl.. (Kenny) rel.. (Rashid) … … … … cwf… (Chris) jxp.. (John) pv.. (Phoenix) zw4.. (Mike)