MINIMIZATION OF DFA WITH EXAMPLE IN AUTOMATA THEORY || DFA MINIMIZATION || TOC

Sundeep Saradhi Kanthety
20 Oct 202119:28

Summary

TLDRIn this educational video, the presenter delves into the concept of DFA minimization in automata theory. Starting with a five-state DFA, the tutorial guides viewers through constructing a transition table and then systematically reduces the number of states by identifying and merging equivalent states. The process involves partitioning states into non-final and final sets, followed by iteratively refining these sets based on state equivalence. The presenter clearly explains how to determine state equivalence using input symbols and the resultant states, ultimately demonstrating how to minimize the DFA to a more efficient four-state model. The video is designed to help viewers understand the practical steps of DFA minimization and is complemented by a clear visual example.

Takeaways

  • πŸ˜€ The video discusses the minimization of Deterministic Finite Automata (DFA), a topic in automata theory.
  • πŸ” It covers the construction of DFA and the conversion of Non-deterministic Finite Automata (NFA) to DFA, which is necessary for implementation.
  • πŸ“‹ The presenter uses a transition table to illustrate the process, with input symbols 0 and 1, and states q0, q1, q2, q3, and q4.
  • πŸ€” The minimization process begins by dividing states into non-final and final state sets, identifying initial equivalences.
  • πŸ”„ The video explains how to find state equivalences by comparing transitions for each input symbol and grouping equivalent states.
  • πŸ“‰ The process of finding equivalences continues iteratively, refining sets until consecutive iterations yield the same results.
  • 🚫 The script emphasizes that states with different transitions for the same input symbol are not equivalent and must be separated.
  • πŸ”’ The example given reduces the number of states in a DFA from five to four by identifying non-equivalent states.
  • πŸ”§ The video demonstrates how to create a new, minimized DFA using the equivalence classes found during the minimization process.
  • πŸ”— The presenter suggests renaming states for clarity in the minimized DFA, proposing labels a, b, c, and d instead of q0, q1, q2, q3, and q4.

Q & A

  • What is the main topic discussed in the video?

    -The main topic discussed in the video is the minimization of Deterministic Finite Automata (DFA).

  • Why is it necessary to convert NFA to DFA before implementation?

    -It is necessary to convert NFA to DFA before implementation because NFA can have multiple transitions for the same input symbol from the same state, which is not feasible for implementation, whereas DFA has a single transition for each input symbol from each state.

  • How many states are initially present in the DFA example discussed in the video?

    -Initially, there are five states in the DFA example discussed in the video.

  • What are the input symbols used in the DFA example?

    -The input symbols used in the DFA example are 0 and 1.

  • What is meant by zero equivalence in the context of DFA minimization?

    -Zero equivalence in DFA minimization refers to the initial division of states into two sets: one containing non-final states and the other containing final states.

  • How are states determined to be equivalent during DFA minimization?

    -States are determined to be equivalent during DFA minimization by comparing their transitions for each input symbol and checking if they lead to states in the same set in the previous equivalence.

  • What is the process of finding equivalences among states called?

    -The process of finding equivalences among states during DFA minimization is called the partition refinement method or the table-filling algorithm.

  • What is the final number of states after minimization in the DFA example?

    -After minimization, the DFA example has four states instead of the initial five.

  • How does the video ensure that the minimized DFA is still complete?

    -The video ensures that the minimized DFA is complete by checking that there is a transition for every state over every input symbol.

  • Can the minimization process be applied to DFAs with multiple final states?

    -Yes, the minimization process can be applied to DFAs with multiple final states by following the same procedure of finding equivalences among states.

  • What is the purpose of renaming states in the minimized DFA?

    -The purpose of renaming states in the minimized DFA is to simplify the representation and make it easier to understand, often using letters like a, b, c, and d instead of q0, q1, q2, and q3.

Outlines

00:00

πŸ€– Introduction to DFA Minimization

The video begins by welcoming viewers to the channel and introducing the topic of DFA (Deterministic Finite Automaton) minimization within the field of automata theory. The presenter discusses previous topics covered, including the construction of DFAs and NFAs (Nondeterministic Finite Automata), and the conversion of NFAs to DFAs for practical implementation. The focus then shifts to the minimization of DFAs, aiming to reduce the number of states. An example DFA with five states is presented, and the process of creating a transition table for this DFA with input symbols 0 and 1 is outlined. The initial step in minimization is dividing the states into non-final and final state sets, with the aim of finding equivalences among the states to reduce their number.

05:02

πŸ” Exploring Zero Equivalence in DFA Minimization

This segment delves into the process of finding zero equivalence in DFA minimization. The presenter explains how to compare states using input symbols to determine if they result in the same set of states, which would indicate equivalence. The comparison starts with the initial state 'q naught' against other states. Through examples, it's shown that 'q naught' is not equivalent to 'q one', 'q two', or 'q three' as their resultant states after input symbols do not fall into the same set. Consequently, new sets are created for non-equivalent states. The process is repeated for each state comparison, aiming to refine the sets based on equivalence.

10:02

πŸ”„ Continuing Equivalence Testing for DFA Minimization

The video continues with the process of DFA minimization, focusing on finding two equivalences. The presenter compares states 'q one' and 'q two', and then 'q one' with 'q three', using the previously established equivalences to guide the comparison. It's determined that 'q one' is equivalent to 'q three' as their resultant states match in the current equivalence sets. However, 'q one' and 'q two' are not equivalent. The presenter emphasizes the importance of checking each state's transitions for all input symbols to ensure the sets are correctly divided based on equivalence. The process is iterative, aiming to refine the sets until no further changes occur.

15:05

🏁 Completing DFA Minimization and Final Thoughts

In the final part of the video, the presenter concludes the DFA minimization process by identifying the three equivalences. It's shown that 'q naught', 'q one', 'q three', 'q two', and 'q four' form distinct sets after the equivalences are determined. The DFA is then redrawn with the minimized number of states, reducing from five to four. The presenter explains how to update the transition table according to the new state sets and ensures that the minimized DFA is still complete, with transitions for every state and input symbol. The video wraps up with advice on renaming states for clarity and offers assistance for any doubts in the comments. The presenter also encourages viewers to like, share, and subscribe for more content.

Mindmap

Keywords

πŸ’‘Automata Theory

Automata Theory is a branch of theoretical computer science and mathematics that deals with abstract machines and automata, as well as the computational processes that they can perform. In the context of the video, Automata Theory is the overarching theme, focusing on the minimization of Deterministic Finite Automata (DFA). The script discusses how to construct and minimize DFAs, which are essential concepts in this theory.

πŸ’‘DFA (Deterministic Finite Automaton)

A DFA is a theoretical model of computation used to design and understand finite state machines. It is a type of automaton where each state has exactly one transition for each possible input symbol. The video script describes the process of minimizing a DFA, which involves reducing the number of states in the automaton without changing its functionality.

πŸ’‘Minimization

Minimization in the context of DFA refers to the process of reducing the number of states in a DFA to the minimum required to represent the same language. This is important for optimizing the efficiency of state machines used in various applications. The script provides a step-by-step guide on how to minimize a DFA by finding equivalent states.

πŸ’‘Transition Table

A transition table is a representation of a DFA that lists all possible transitions between states for each input symbol. In the script, the creation of a transition table is discussed as a preliminary step before beginning the minimization process. It is used to systematically compare states and determine their equivalence.

πŸ’‘Equivalence

In the context of DFA minimization, equivalence refers to the property of two states being indistinguishable based on their behavior for all possible input sequences. The script explains how to determine equivalence by comparing the resulting states after applying input symbols, which is crucial for merging states during minimization.

πŸ’‘Zero Equivalence

Zero equivalence is the initial partitioning of states into two sets: non-final states and final states, which serves as the starting point for the minimization process. The script uses zero equivalence to set up the comparison of states and begins the iterative process of finding equivalent states.

πŸ’‘One Equivalence

One equivalence is the result of the first iteration of comparing states in the minimization process, where states are divided into sets based on whether they lead to the same resultant state for all input symbols. The script describes how one equivalence is calculated and how it leads to the creation of new sets of equivalent states.

πŸ’‘Non-final States

Non-final states are states in a DFA that are not accepting or final states. In the script, the distinction between non-final and final states is made during the zero equivalence step, which is essential for understanding the structure of the DFA and its minimization.

πŸ’‘Final States

Final states, also known as accepting states, are the states in a DFA where the machine halts and accepts the input string. The script mentions that the DFA in the example has only one final state, which simplifies the minimization process as all other states are non-final.

πŸ’‘Complete DFA

A complete DFA is a DFA where every state has a transition for every input symbol. The script ensures that the minimized DFA remains complete, meaning every state has transitions for all input symbols, which is a requirement for the DFA to function correctly.

Highlights

Introduction to the topic of DFA minimization in automata theory.

Explanation of constructing DFA and the necessity of converting NFA to DFA for implementation feasibility.

Discussion on the possibility of reducing the number of states in a DFA.

Illustration of the DFA with five states and the goal to minimize it.

Introduction to the concept of zero equivalence in the minimization process.

Division of states into non-final and final states for the zero equivalence set.

Methodology for comparing states to determine their equivalence using input symbols.

Procedure for creating new sets when states are found to be non-equivalent.

Explanation of the one equivalence process and its role in state minimization.

Demonstration of the process to compare states using the input symbols 0 and 1.

Identification of states that are not equivalent and the creation of new sets for them.

Continuation to the two equivalence process after establishing one equivalence.

Finding and comparing two equivalences among the remaining states.

Procedure to stop when consecutive equivalences yield the same result.

Final step of minimizing the DFA to a new DFA with a reduced number of states.

Renaming of states for clarity in the minimized DFA.

Conclusion on the successful minimization of the DFA from five to four states.

Encouragement for viewers to ask questions and engage with the content.

Transcripts

play00:02

[Music]

play00:12

hello friends welcome back to our

play00:13

channel so in today's session we'll

play00:15

discuss about one more topic in automata

play00:17

theory that is the minimization of dfa

play00:19

so so far we have discussed about how to

play00:22

construct the dfa and how to construct

play00:23

the nfa and also we have seen the

play00:26

conversion of nfa to bfa because the

play00:28

implementation is not feasible for nfu

play00:30

so that we have to convert it to a dfa

play00:32

and the implementation can be done

play00:34

further dfu and now in this topic so we

play00:38

will see the minimization of dfa so this

play00:40

is a

play00:41

complete dfa but

play00:42

so is it possible to reduce the number

play00:44

of states so here you can see in this

play00:46

example we are having around five states

play00:48

and is it possible to reduce the states

play00:51

that means minimization of dft

play00:54

right so first of all uh we'll take this

play00:57

example and we'll

play00:59

draw the transition table for this one

play01:04

so the input symbols are 2 0 and 1 so

play01:07

for 0 and for 1 and the states are q

play01:11

naught

play01:12

q 1

play01:13

q 2

play01:14

q 3

play01:15

and

play01:16

q 4 so total 5 states are there

play01:20

right so these are the 5 states now we

play01:22

have to fill the

play01:24

transition table so q naught on zero

play01:26

q naught on zero q one it moves to q one

play01:29

state and q naught on one it moves to q

play01:31

three

play01:33

and q one on zero

play01:36

it moves to q two

play01:38

q one on 1 it moves to q4

play01:42

q2 on 0

play01:43

it moves to q1

play01:46

q2 on 1 it moves to q4

play01:50

q3 on 1

play01:52

it moves sorry q3 on 0 it moves to q2

play01:56

q3 on 1 it moves to q4

play02:00

q4 on 0 and 1 the self transition it

play02:03

remains in the same state so this is the

play02:06

transition table for the given diagram

play02:09

now the next step is

play02:12

we need to divide the complete states

play02:15

into two sets that is one with the

play02:18

non-final states and another with the

play02:20

final states so we know that the dfa can

play02:23

have a multiple final states but here in

play02:25

this example we are holding we are

play02:26

having only one final states right so

play02:29

but the first step is we need to find

play02:32

the two different sets one set with the

play02:34

non-final states and another set within

play02:37

final state so that we call it as a zero

play02:40

equivalence so in this minimization

play02:42

problem so we need to find the

play02:44

equivalence right so

play02:46

first one is zero equivalence

play02:52

zero equivalence

play02:56

so here we are having two sets one is

play02:59

the non-final sense and another one with

play03:01

the final states so here non-final

play03:04

states are

play03:05

q naught

play03:06

q one

play03:08

q two

play03:09

and a q three so in from this diagram

play03:11

you can see all these four are the

play03:13

non-final states and there is one more

play03:15

state called

play03:18

q4 which is a final state non-final

play03:20

states

play03:21

okay non-final states

play03:23

and

play03:24

final state

play03:26

the first step is this one okay and from

play03:29

this one we need to find the one

play03:31

equivalence that means we have to find

play03:34

whether these two states are equal or

play03:36

not so that means equivalence of states

play03:38

you should be fined and if they are

play03:40

equal it remains in the same set

play03:42

otherwise it fall in the new set okay so

play03:46

let us

play03:46

check with the one equivalence

play03:52

see whenever you are finding the one

play03:54

equivalence we have to compare

play03:55

everything with the zero equivalence now

play03:58

we have to compare q naught with all the

play04:00

remaining states whether it is equal or

play04:02

not

play04:03

right how how can we

play04:05

compare this one so

play04:07

over the input symbol 0 and 1 compare

play04:10

the two states the resultant states if

play04:12

the resultant states fall in the same

play04:14

set then automatically it shows that two

play04:17

states are equal right so let me explain

play04:20

you with an example now we'll compare q

play04:22

naught and q one okay q naught and q one

play04:25

so i i will explain here itself okay for

play04:29

the one equivalence and see

play04:32

here there is a one set and

play04:34

automatically uh here we are having a

play04:37

one more set called q4

play04:40

okay q4 because it's having only one uh

play04:43

state so we we did not compare with any

play04:45

other so it will remain in the same

play04:47

speed okay now we have to compare q

play04:49

naught with q one q two and q three now

play04:52

we will compare q naught with

play04:55

q one

play04:56

should not with q one so compare

play05:01

so we know that q naught on zero

play05:04

and

play05:06

q one on zero similarly

play05:09

q naught on

play05:10

sorry q naught on one and

play05:13

q naught sorry q one on one

play05:18

q one on one okay so we are comparing

play05:21

the q naught and q one over the input

play05:23

symbol zero and q naught and q one over

play05:26

the input symbol one

play05:27

now we can observe q naught on zero q

play05:30

naught on zero it moves to q one

play05:33

q one on zero

play05:35

it moves to q

play05:36

two just compare the resultant states

play05:40

whether these states fall in the same

play05:42

set of previous equivalence here we are

play05:45

finding the one equals why we have to

play05:47

check in the zero equivalence you can

play05:49

see q1 and q2 so far in the same set

play05:53

okay q one and q two fall in the same

play05:56

set right now compare this one the

play05:58

states with input symbol one q naught on

play06:01

one it is a q three

play06:03

and q one on one it is a q4 and here you

play06:06

can observe if these two states are in

play06:09

the same

play06:10

set or not so q3 is in one state one set

play06:14

and q4 is in another set so this implies

play06:17

so this is not possible okay this is not

play06:21

possible so that implies q naught

play06:24

is not equal to q one q naught is not

play06:28

equal to q one so that's why q naught

play06:30

will be here and there will be one more

play06:33

set created and q naught will be remains

play06:35

here itself okay so we have to divide

play06:38

the unequivalent say state two and use

play06:41

it so q naught and q one if you compare

play06:43

q naught and q one both are not

play06:45

equivalent so we have to divide this q

play06:47

naught and q one so open the new set and

play06:51

just move the state which is not equal

play06:53

to q naught two in the other

play06:55

and now the next step compare q naught

play06:57

with q two

play06:59

same procedure now we need to compare q

play07:01

naught with q two

play07:04

q two right say q naught on zero

play07:08

okay q naught on zero and q two on zero

play07:12

similarly q naught on

play07:14

one q naught on one and

play07:18

q two on one see q naught on zero q

play07:21

naught on zero it is a q one

play07:23

and q two one zero

play07:24

is a q one

play07:26

yes so you can compare so q one both are

play07:29

falling in the same set q1 right next q

play07:32

not on one it's a q3

play07:35

and q2 on one it's a q4

play07:38

so again you can observe here both are

play07:39

different

play07:40

both are different q3 in one set and q4

play07:43

is in another set so

play07:44

q naught is

play07:46

not equal to q two q naught is not equal

play07:50

to q two so we have to divide the q two

play07:52

also so just

play07:53

uh

play07:58

insert the

play07:59

q2 in the new cell okay and now we need

play08:03

to compare q naught with a q three

play08:05

because we have compared q naught with q

play08:06

one q naught with q now we have to

play08:08

compare q naught with q three now

play08:13

see

play08:15

cube

play08:16

and here also we need to find a q three

play08:18

on zero and

play08:20

q three on

play08:22

one now

play08:23

so let us repeat the same process

play08:26

so q naught on zero is a q one

play08:29

and q naught on zero is a q two both are

play08:33

in the same set q naught q three sorry q

play08:36

one and q right q naught on one it is a

play08:38

q three q3 q3 on one it's a q4

play08:42

it's a q4 again this is not equal so

play08:45

again we need to divide q naught with

play08:47

the q3 so

play08:48

q3 falls in the new set and q2 q9 will

play08:52

be remaining in the same set so

play08:54

this is the

play08:56

one equivalence so after one equivalence

play08:59

the q naught is in one set q one q two q

play09:03

three are in another set because q

play09:05

naught is not equivalent to q1 q2 and q3

play09:08

so that's why we are dividing the set so

play09:11

we are reducing the states of a set okay

play09:15

now

play09:16

so this is

play09:19

the procedure to form to find out the

play09:21

one equivalence after that we need to

play09:23

find the two equivalents and then three

play09:25

equivalents so we need to repeat the

play09:27

same process until we get the same

play09:29

result in the consecutive equivalences

play09:31

now let us check with the two

play09:33

equivalence okay right here itself i'll

play09:36

write here itself so two

play09:39

equivalence right so here you can

play09:42

observe q naught is a single

play09:44

state so you need not change it and we

play09:47

need to compare the q one with q2 and q3

play09:50

and we have to

play09:51

divide that with the equivalence and

play09:53

non-equivalence

play09:54

now

play09:55

just

play09:56

compare

play09:58

q1 with

play10:00

q2

play10:02

so

play10:03

one on zero

play10:05

q two on zero similarly q one on one

play10:08

[Music]

play10:10

q two on one so q one one zero

play10:13

show one one zero it's a q two

play10:16

q two on 0 it's a q1

play10:19

now you have to check this one

play10:22

with the

play10:23

previous equivalent so we are finding

play10:24

the two equivalence we have to compare

play10:26

it with the one equals so before we have

play10:29

we are finding the one equivalent so we

play10:30

have to compare the zero equivalence now

play10:32

you can see q2 and q1 so q2 is in in one

play10:36

set and q1 is in another set so you did

play10:39

not find out this one so q1 is not equal

play10:42

to q2 so just divide the

play10:47

q1

play10:49

q2 okay now

play10:52

hope you understood q1 and q2 now you

play10:54

just find the compare the q1 with q3

play10:57

just compare the q1 with should be so i

play11:00

will compare with the q one with q three

play11:03

so here also i'll go with the q one and

play11:05

q three and q one and q three and see

play11:08

now whether the both the states are

play11:10

equal or not so q one zero

play11:13

is a q2

play11:14

q3 on 0 is a q2 so you can find you can

play11:18

find these two are the same

play11:20

state which falls in the same set so

play11:23

this is equal and q1 on 1 it's a q4

play11:26

q3 on one it's a q4 so both are in the

play11:30

same

play11:31

set okay both are in the same set q4

play11:33

right so that implies so q1 is equal to

play11:38

q3 so both are equal

play11:40

so just

play11:43

place the place it here q1 and q3 and q2

play11:48

and again it's a q4

play11:50

now you can observe here

play11:52

in the two equivalents q naught q and q

play11:55

two are same q two and q four

play11:58

okay now

play12:00

now we need to find the three

play12:01

equivalence we need to find the three

play12:03

equations because

play12:04

equivalence one and equals two both are

play12:06

not equal right so we need to find the

play12:09

equivalence 3

play12:11

so now just find the

play12:13

three equals

play12:18

three equals so in the three equivalence

play12:20

we need to compare q1 and q3 because q

play12:22

naught is a single state q 2 is a single

play12:25

state and q 4 is single state so we are

play12:27

having the two states here now we need

play12:29

to compare

play12:32

q 1

play12:33

with

play12:34

q 3

play12:36

so q 1 on zero

play12:38

q three

play12:39

on zero so q one

play12:42

on one

play12:44

q three on one so you can see q one on

play12:46

zero it is a q two and q three on zero

play12:50

is again q two so both are equal right

play12:53

coming to the q one on one q one on one

play12:55

execute four and q three on one it's

play12:57

again q four both are equal so simply

play13:00

the third equivalence for this one

play13:03

is

play13:05

q naught the single state q two single

play13:07

state q four in single state so we need

play13:09

not uh compare them right so q one q

play13:12

three remains same so

play13:14

here you can observe that three

play13:16

equivalence

play13:18

the three equivalence

play13:20

is

play13:21

q naught

play13:24

q one

play13:25

q three

play13:28

q two

play13:30

q four because q naught q three are

play13:33

equal here q 1 and q 3 are equal so you

play13:35

can see the resultant of third

play13:37

equivalence resultant of second

play13:39

equivalence both are equal so just stop

play13:42

finding the equivalences right so we

play13:45

have to repeat the process until we get

play13:47

the

play13:48

last two equivalences result as a same

play13:51

so here one equivalence and two

play13:53

equivalence are both are not equal so we

play13:55

are finding the third equivalence so

play13:57

third equivalence and second equivalence

play13:58

are equal so we have to find out i mean

play14:00

we have to stop the procedure now by

play14:03

using this one you have to draw the dfa

play14:06

so here you can observe q naught is one

play14:08

state q one q three is one state q t is

play14:11

one state and q four is one state so

play14:13

total four states so here you can say

play14:15

the total states are four but before

play14:18

minimization how many states are there

play14:20

there are five states so we are

play14:22

minimizing the five states to four

play14:24

states so just write down here so q

play14:27

naught

play14:31

q1 comma q3 becomes a one state

play14:39

q2 is one state

play14:42

q4 is another state okay four states now

play14:46

just

play14:46

follow the transition table and find out

play14:48

the i mean uh give the transitions q

play14:51

naught on zero q one so where is q one

play14:53

here this is q one

play14:55

q one on zero

play14:57

it goes to q one q naught on one it goes

play14:59

to q three

play15:01

so here itself so zero comma one okay

play15:04

and q one on zero q two

play15:08

q one on zero

play15:10

q two so q1 on 0

play15:12

it moves to

play15:15

q2

play15:16

next q1 on 1 it moves to q4 q1 on 1 it

play15:20

moves to

play15:21

q4

play15:22

q2 on 0 q1 q2 on 0 q1

play15:26

so again

play15:30

0

play15:30

and q2 1 q4

play15:33

q2 on 1 is

play15:35

q4

play15:36

q3 on 0 q2 q3 on 0

play15:40

q2 so here you can see q3 on 0 q2

play15:44

already there is a transition q3 on 1 q4

play15:47

q3 on 1 q4 again already there is a

play15:50

transition and q4 on 0 and 1 it remains

play15:53

in the same state so

play15:55

this is a

play15:57

and

play15:58

1 so this will be the initial state so

play16:00

here also q naught is initial state and

play16:02

q 4 is the final state and here also the

play16:04

q 4 will remains the same as a final

play16:06

state so we have we are minimizing the

play16:09

given dfa

play16:11

to the

play16:12

another dfa with a limited number of

play16:14

states with a minimum number of states

play16:16

right and here you can observe that

play16:18

whether it is a complete af or not so

play16:20

for q naught there is a transition for 0

play16:22

and 1 yes q 2 for q 2 there is a

play16:25

transition for 0 and 1 and q 1 q 3 is

play16:28

having a transition for 0 and 1 q 4 is

play16:30

having a transition for 0 and 1 yes so

play16:33

for every state there is a transition

play16:35

over every input symbol so this is a

play16:37

complete dfa and we are minimizing this

play16:40

dfva to

play16:42

this df that means we are reducing the

play16:44

five states to four states so simply by

play16:47

finding the equivalence between the

play16:49

states so once again i am repeating so

play16:51

first we need to find out the zero

play16:54

equivalence which is having a two sets

play16:56

one set with the non-final states and

play16:58

our another set with the final states

play17:00

and from that we need to divide the

play17:02

complete states by finding the

play17:04

equivalences right so for every state

play17:07

with the input symbols we need to find

play17:09

the resultant state whether they fall in

play17:11

the same set or not if they fall in the

play17:13

same set automatically the states are

play17:15

equal and if they fall in different sets

play17:18

automatically the states are not equal

play17:20

so we have def we have to divide in this

play17:22

one equivalence q naught is completely

play17:24

different with q one q two q three so we

play17:27

have divided q naught with the q one q

play17:28

two q three and q four so here after

play17:31

zero equivalence we are getting the one

play17:33

equivalence with the three sets and from

play17:35

these three states again you can find

play17:37

the three states with one say we need to

play17:40

find the equivalence among these three

play17:42

states q one with q two q three so that

play17:44

we have we got that q1 and q3 are equal

play17:47

and they are both are not equal to q2

play17:50

you can also contact q3 with q2 because

play17:52

here we are having some q1 and q3 are

play17:55

equal so q1 and q2 are different

play17:57

automatically q3 and q2 q2 will also be

play17:59

different right so like this we have to

play18:02

repeat the same process by finding the

play18:03

equivalences until you get the last two

play18:06

equivalents as the same states

play18:08

okay so here you can observe q naught q

play18:10

one q three q two q four four states are

play18:12

there four sets are there and third

play18:14

equivalence also the four sets with the

play18:16

same

play18:17

states so that's why we have to stop at

play18:19

third equivalence and just draw the dfa

play18:22

with the given following states so you

play18:24

can also rename this as a

play18:27

b c and d and you can rename instead of

play18:30

using q naught you can use a a instead

play18:32

of using q one q three you can use a b

play18:34

instead of q two using it you can use a

play18:36

c and instead of q four you can use d

play18:39

right so this is the procedure to follow

play18:42

the

play18:43

i mean uh to find out the minimization

play18:46

of dfu right and if in some

play18:49

dfa we are having a multiple final

play18:52

states we have will be having a multiple

play18:54

final states so here also then in such

play18:57

cases we will get this set within

play18:59

multiple final states and here also we

play19:01

need to compare each and every state of

play19:05

this

play19:05

final states we have to follow the same

play19:07

procedure

play19:08

right so hope you understood this one

play19:11

if you are having any

play19:12

doubts regarding this procedure feel

play19:14

free to post your doubts in the comment

play19:15

section uh definitely i will try to

play19:17

clarify all your doubts and if you

play19:19

really enjoyed my session like my

play19:20

session share my session with your

play19:21

friends and don't forget to subscribe to

play19:23

our channel thanks for watching thank

play19:25

you very much

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Automata TheoryDFA MinimizationState ReductionComputer ScienceAlgorithmsProgrammingEducational ContentTechnical TutorialState MachinesCoding Concepts