Lecture 6 NFA Subset Construction - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

Lecture 6 NFA Subset Construction

Description:

Regular Expressions. Relations Machines and Regular expressions. Ruby: regular expressions ... Exercise 2.2.9 Solutions Online. Author's Website for Text ... – PowerPoint PPT presentation

Number of Views:155
Avg rating:3.0/5.0
Slides: 29
Provided by: mantonm5
Category:

less

Transcript and Presenter's Notes

Title: Lecture 6 NFA Subset Construction


1
Lecture 6NFA Subset Construction Epsilon
Transitions
CSCE 355 Foundations of Computation
  • Topics
  • Examples Subset Construction
  • Authors Website again
  • Epsilon transitions
  • Ruby - dfa1.rb

Sept 15, 2008
2
  • Last Time Readings 2.3
  • Examples Subset construction converting NFA ?
    equivalent DFA
  • e-NFA
  • TEST 1 September 29th
  • New Readings section 2.2.3-2.4
  • Sample Test 1
  • Mutual Induction Proof revisited
  • Theorem 2.12 Proof
  • Authors Website Solutions Online
  • e-NFA ? NFA
  • e-NFA ? DFA subset construction
  • Regular Expressions
  • Relations Machines and Regular expressions
  • Ruby regular expressions
  • Ruby Pickaxe Book
  • Ruby showmatch.rb

3
Exercise 2.2.9 Solutions Online
  • Authors Website for Text
  • http//infolab.stanford.edu/ullman/ialc.html
  • HW Solutions for starred () problems
  • http//infolab.stanford.edu/ullman/ialcsols/sol2.
    html
  • 2.2.9 page 54 Prove If d(q0, a) d(qf, a) for
    all a in S then for all w ! e we have d(q0, w)
    d(qf, w) by induction on the length of w.
  • Basis
  • Assume
  • Then we need to show that
  • Dr. Ullmans (Jeffs) slides from CS 154
  • http//infolab.stanford.edu/ullman/ialc/jdu-slide
    s.html

4
Mutual Induction Proof
  • Write up on back of Lecture Overview

5
Theorem 2.11 For NFA there is Eq. DFA
6
Epsilon (e)-Transitions
  • Keyword Searching Example for, format, font

7
Epsilon Closure
8
Equivalent NFA (without e) for an NFA with e
  • Convert NFA with e to an equivalent NFA without e
  • Compute transitive closure of e arcs
  • If p can reach state q by e arcs and d(r, a)
    contains p (there is a transition from r to q on
    input a) then add q to d(r, a) i.e. add a
    transition from r to q on input a
  • xx

9
References and Homework
  • Ruby pickaxe book Online
  • http//whytheluckystiff.net/ruby/pickaxe/
  • Authors Website for Text
  • http//infolab.stanford.edu/ullman/ialc.html
  • Slides, HW, Exams

10
Homework
  • 2.5.1
  • 2.5.3 a,b
  • Extra Credit (20pts) Modify dfa1.rb to print all
    strings of lengthlt8 that would be accepted by
    that DFA.

11
(No Transcript)
12
(No Transcript)
13
(No Transcript)
14
(No Transcript)
15
(No Transcript)
16
(No Transcript)
17
(No Transcript)
18
(No Transcript)
19
(No Transcript)
20
(No Transcript)
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
(No Transcript)
27
(No Transcript)
28
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com