12. DFA - 8/27/09 11 8/27/09 MATH 224 Discrete Mathematics...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 8/27/09 11 8/27/09 MATH 224 Discrete Mathematics Deterministic Finite Automata Finite State Machines Set of States Q Start State q0 Q Accepting States qf 8 Q Alphabet 8 e.g, {0, 1} Transitions 8 & ( , qi) qj q0 qf1 qf2 q1 q2 q3 8/27/09 22 8/27/09 MATH 224 Discrete Mathematics DFA Represented by a Directed Graph Multitasking in an operating System Ready Queue Running Start Blocked Waiting Time slice expired Dequeue d Blocked waiting for a resource, e.g. data from a disk Finished with resource and ready to run 8/27/09 33 8/27/09 MATH 224 Discrete Mathematics DFA for Multiples of 3 in binary q0 qf-3 q2 q1 1 1 1 1 Start Example 1 46 remainder 1 string 1 0 1 1 1 States 1 2 2 2 2 1 Example 2 51 remainder 0 string 1 1 0 0 1 1 States 1 3 3 3 1 3 8/27/09 MATH 224 Discrete Mathematics DFA for Multiples of 3 in binary including the empty string qf-0 q2 q1 1 1 1 START 8/27/09 55 8/27/09 MATH 224 Discrete Mathematics DFA to Recognize Floating Point q0 qf-0 q1 0 - 9 +, 0 - 9 e, E q2 q3 +, 0 - 9 0 - 9 0 - 9 q4 Qf-1 q5 Start 0 - 9 ....
View Full Document

Page1 / 8

12. DFA - 8/27/09 11 8/27/09 MATH 224 Discrete Mathematics...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online