+ All Categories
Home > Documents > Free Video Lectures for MBA

Free Video Lectures for MBA

Date post: 19-Jul-2016
Category:
Upload: edholecom
View: 13 times
Download: 5 times
Share this document with a friend
Description:
free video lectures for all courses
24
Free Video Lectures for MBA By: video.edhole.com
Transcript
Page 1: Free Video Lectures for MBA

Free Video Lectures for MBA

By:video.edhole.com

Page 2: Free Video Lectures for MBA

2

CSI 3104 /Winter 2006: Introduction to Formal Languages Chapter 6: Transition Graphs

Chapter 6: Transition Graphs

We introduce the first non-deterministic but simple theoretical machine: Transition Graph.

video.edhole.com

Page 3: Free Video Lectures for MBA

3

Chapter 6: Transition Graphs

An FA: {baa} The word a? The word baabb? The input fails, or the machine fails

on the input. The input is rejected.

a,b

b +a

a

a

bb a,b

video.edhole.com

Page 4: Free Video Lectures for MBA

4

Chapter 6: Transition Graphs

A transition graph that accepts the language {baa}What it seems to be a More Powerful Machine

– +

a,b

ba a

a,b

b

aa, ab, bb

video.edhole.com

Page 5: Free Video Lectures for MBA

5

Chapter 6: Transition Graphs

The word a? The word baabb? The input crashes. The machine

crashes. The input is rejected. (2 ways for an input to be rejected)

– +baa

all else a,b

a,b

– +baaTwo other equivalent Transition Graphs with fewer states

video.edhole.com

Page 6: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 6

Chapter 6: Transition Graphs

baa? a choice, a decision 2 possible paths b|aa - accepted b|a|a - rejected 1 way to crash ba|a – rejected The machine represents a language L. baa L? For all w, w L if there exists a path that arrives at a final

state.

– +aa,bba,b a,b

video.edhole.com

Page 7: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 7

Chapter 6: Transition Graphs

baab? 2 possible paths, both end in a final state.

1

+

ba

baa 2

ab

b

video.edhole.com

Page 8: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 8

Chapter 6: Transition Graphs

A transition graph (TG) is the following 3 things:1. a finite set of states, at least one of which is

designated as the start state, and some (maybe none) of which are designated the final states (or accepting states)

2. an alphabet of input letters3. a finite set of transitions that show how to go to a

new state, for some pairs of state and substrings of letters (or Λ). (One pair can have 0, 1, or more next-states.)

video.edhole.com

Page 9: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 9

Chapter 6: Transition Graphs

A successful path is a series of edges beginning at some start state and ending at a final state.

The concatenation of all the substrings that label the edges in the path is a word accepted by this machine.

The set of words accepted is the language of the transition graph.

video.edhole.com

Page 10: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 10

31–

2abb 4+

a

aab

Chapter 6: Transition Graphs

1

abbab crashes.

abbaab 2

abb1

aa3

4

b

Example:

video.edhole.com

Page 11: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 11

Chapter 6: Transition Graphs

These two machines are clearly equivalent. Remark: Every finite automaton is a transition graph.

1–

+b

3–

a

aba

2– –

1

+b

3

a

aba

2

Many start states

video.edhole.com

Page 12: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 12

Chapter 6: Transition Graphs

L = {, abba, baa}

– +

baa+ abba

L = {}L =

video.edhole.com

Page 13: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 13

Chapter 6: Transition Graphs

+

– +

+

– +

L = {Λ}

video.edhole.com

Page 14: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 14

Chapter 6: Transition Graphs

transition graph:Some words can fail, crash, and succeed: abab.

– +b

a

ba FA

– +b

a,b

All words ending in b: (a+b)*b

video.edhole.com

Page 15: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 15

Chapter 6: Transition Graphs

+b

a,b

–b

a

+a

a,b

– b +bb

aa b

aa

video.edhole.com

Page 16: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 16

Chapter 6: Transition Graphs

Transition Graph:FA:1+ 2

b

b

a

3 4

b

b

a a abalanced unbalanced

+

ab,baaa,bbaa,bb

ab,ba

even aeven b

odd aodd b

odd aeven b

even aodd b

Language EVEN-EVEN

video.edhole.com

Page 17: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 17

Chapter 6: Transition Graphs

abbbabbbabba

– +

a a

a a,bb

b

abbb

b

bbbba

ab

bbb

video.edhole.com

Page 18: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 18

Chapter 6: Transition Graphs

Infinitely many paths for aa

Is there an algorithm to determine if a word is accepted?

– +aa

video.edhole.com

Page 19: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 19

Chapter 6: Transition Graphs

– +

a a

– +

a, a a

b,

We can delete the transition

But not here

video.edhole.com

Page 20: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 20

Chapter 6: Transition Graphs

A generalized transition graph (GTG) is the following 3 things:1. a finite set of states, at least one of which is

designated as the start state, and some (maybe none) of which are designated the final states (or accepting states)

2. an alphabet of input letters3. a finite set of edges connecting some pairs of

states, each labeled with a regular expression

video.edhole.com

Page 21: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 21

Chapter 6: Transition Graphs

Words without 2 b’s in a row:

+ +b+(ba+a)*

a* a*

video.edhole.com

Page 22: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 22

Chapter 6: Transition Graphs

– +aa,b

b a,b

– +a(a+b)

(a+b)*

b*

Kleene Star Closure and Loops

video.edhole.com

Page 23: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 23

Chapter 6: Transition Graphs

3

4

5

abb

abb

3

5

ab

abb

4b

Choosing Transitions

video.edhole.com

Page 24: Free Video Lectures for MBA

Dr. Nejib Zaguia CSI3104-W06 24

Chapter 6: Transition Graphs

7

8

10

a

b

9b …

…7

8a

… …

10

b

9b

Machine is nondeterministic

Choices even with restriction of 1 letter per edge

video.edhole.com


Recommended