SlideShare uma empresa Scribd logo
1 de 6
MC0082 –Theory of Computer Science
1. Define the concept of equivalence relation. Give at least two examples of
equivalence relation.

Definition: A relation R on a set A is an equivalence relation if and only if R is
1. Reflexive,
2. Symmetric, and
3. Transitive.
The definition is motivated by observing that any process of “identification” must behave
somewhat like the equality relation, and the equality relation satisfies the reflexive (x = x
for all x), symmetric (x = y implies y = x), and transitive (x = y and y = z implies x = z)
properties.
Example.
a) Let R be the relation on the set R real numbers defined by xRy iff x − y is an integer.
Prove that R is an equivalence relation on R.
Proof.
I. Reflexive: Suppose x ∈ R. Then x − x = 0, which is an integer. Thus, xRx.
II. Symmetric: Suppose x, y ∈ R and xRy. Then x − y is an integer. Since
y − x = −(x − y), y − x is also an integer. Thus, yRx.
III. Suppose x, y ∈ R, xRy and yRz. Then x − y and y − z are integers. Thus,
the sum (x − y) + (y − z) = x − z is also an integer, and so xRz.
Thus, R is an equivalence relation on R. #
b). Let R be the relation on the set of real numbers R in Example
1. Prove that if xRx ' and yRy' , then (x + y)R(x' + y').

Proof: Suppose xRx ' and yRy '. In order to show that (x+y)R(x'+y'), we must show that
(x + y) − (x ' + y') is an integer. Since
(x + y) − (x'+ y') = (x − x') + (y − y'),
and since each of x−x ' and y −y ' is an integer (by definition of R), (x−x') + (y −y ')
is an integer. Thus, (x + y)R(x ' + y').
2. Prove by Mathematical Induction that

Base Step:
Let n=0 then the sum of the left side is 0.
Since there is nothing to add the expression on the right side is also 0
If n=1 then left side is 1
and

right side =

Hence the result is true for n=1
Induction Hypothesis:

Assume that the result to be true for n=m then

Adding the (m+1) th term i.e (m+1)3 to both side of the above equation
3. Prove that a graph G is connected if and only if it has a spanning tree.
Suppose that a simple graph G has a spanning tree T. T contains every vertex of
G and there is a path in T between any two of its vertices. Because T is a sub graph of
G, there is a path in G between any two of its vertices. Hence, G is connected. Now
suppose that G is connected. If G is not a tree, it contains a simple circuit. Remove an
edge from one of the simple circuits. The resulting sub graph is still connected because
any vertices connected via a path containing the removed edge are still connected via a
path with the remaining part of the simple circuit. Continue in this fashion until there are
no more simple circuits. A tree is produced because the graph remains connected as
edges are removed. The resulting tree is a spanning tree because it contains every
vertex of G.
.
4. Prove that a≡ b(mod m) is an equivalence relation.

We simply use,
the definition of congruence modulo n: for any two integers a,b,

a≡b(modm)⟺
a−b=km, for some k∈ Z.
The definitions of the three properties any equivalence relation must, by definition,
satisfy: reflexivity, symmetry, transitivity.

Reflexivity: for all a∈ Z,a∼a.
Is there a k∈ Z such that for integer a, a−a=mk?
Symmetry: for all a,b∈ Z, if a∼b, then b∼a.
Is there a k2∈ Z such that for integers a,b, if k1 is a integer such that a≡b(modm) so that

a−b=mk1 for some integer k1, then b-a=mk_2, and hence b cong a pmod m$?
Transitivity: for all a,b∈ Z, if a∼b, and b∼c, then a∼c
Can it be shown that:

a≡b(mod()m)⟶ k1∈ Z, a−b=mk1
∃
and

b≡c(modm)⟶ k2∈ Z, b−c=mk2,
∃
that there must exist some k3∈ Z such that a−c=mk3?

5. Explain the concept of a Transition graph.
A finite directed labeled graph in which each node or vertex of the graph
represents a state and the directed edges from one node to another represent transition
of a state. All the edges of the transition graph are labeled as input/output. For example,
an edge labeled 1/0 specifies that for certain initial state if the input is 1, then the output
is 0.

Consider the following diagram:

In the transition graph as shown in the figure,
○

The initial state, q0, of the system is represented by a circle with an arrow
pointing towards it.

○

The final state, q1, is represented by two concentric circles.

○

The directed edges from the initial state to the final state are labeled as
input/output.

The graph represents the DFA,
M = (Q= {q0, q1, q2}, Σ = {0,1}, δ, q0= initial state, F = {q1} ), where δ is given by,
δ(q0, 0 ) = q0,
δ(q0, 1 ) = q1,
δ(q1, 0 ) = q0,
δ(q1, 1 ) = q2,
δ(q0, 0 ) = q2,
δ(q2, 1 ) = q1
Representation of DFA using transition table,
In this method, the DFA is represented in the tabular form. This table is called
transitional table. There is one row for each state, and one column for each input. Since,
in the transition diagram shown in the fig., there are three states, there are three rows for
each state. The input symbols are only 0 and 1 so, there are two columns for the input
symbols. The transitional table for the diagram is given below.

6. Explain the steps of conversion of Mealy machine into Moore machine
Consider the following steps
Step 1:
For a state qi determine the number of outputs that are available in θ state table of the Mealy
machine.

Step 2:
If the outputs corresponding to state qi in the next state columns are same, then retain state qi as
it is. Else, break qi into different states with the number of new states being equal to the number
of different outputs of qi.

Step 3:
Rearrange the states and outputs in the format of Moore machine.
The common output of the new state table can be determined by examining the outputs under the
next state columns of the Mealy machine.

Step 4:
If the output in the constructed state table corresponding to the initial state is 1, then this specifies
the acceptance of the null string ^ by Mealy machine. Hence, to make both the Mealy and Moore
machines equivalent, we either need to ignore the corresponding to null string or we need to
insert a new initial state at beginning whose output is 0; the other row elements in this case would
remain the same.

Mais conteúdo relacionado

Mais procurados

Linear functions and modeling
Linear functions and modelingLinear functions and modeling
Linear functions and modeling
IVY SOLIS
 
Slops of the Straight lines
Slops of the Straight linesSlops of the Straight lines
Slops of the Straight lines
itutor
 
Lesson 14 a - parametric equations
Lesson 14 a - parametric equationsLesson 14 a - parametric equations
Lesson 14 a - parametric equations
Jean Leano
 
Linear Functions
Linear FunctionsLinear Functions
Linear Functions
kliegey524
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
Kt Silva
 
Inverse Matrix & Determinants
Inverse Matrix & DeterminantsInverse Matrix & Determinants
Inverse Matrix & Determinants
itutor
 
Matrices
MatricesMatrices
Matrices
NORAIMA
 

Mais procurados (19)

Linear functions and modeling
Linear functions and modelingLinear functions and modeling
Linear functions and modeling
 
Slops of the Straight lines
Slops of the Straight linesSlops of the Straight lines
Slops of the Straight lines
 
Jacobi iteration method
Jacobi iteration methodJacobi iteration method
Jacobi iteration method
 
Lesson 14 a - parametric equations
Lesson 14 a - parametric equationsLesson 14 a - parametric equations
Lesson 14 a - parametric equations
 
Determinants
DeterminantsDeterminants
Determinants
 
Linear Functions
Linear FunctionsLinear Functions
Linear Functions
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
 
Fourier-transform analysis of a unilateral fin line and its derivatives
Fourier-transform analysis of a unilateral fin line and its derivativesFourier-transform analysis of a unilateral fin line and its derivatives
Fourier-transform analysis of a unilateral fin line and its derivatives
 
Inverse Matrix & Determinants
Inverse Matrix & DeterminantsInverse Matrix & Determinants
Inverse Matrix & Determinants
 
Matrices and determinants-1
Matrices and determinants-1Matrices and determinants-1
Matrices and determinants-1
 
Double Integrals
Double IntegralsDouble Integrals
Double Integrals
 
Week 7
Week 7Week 7
Week 7
 
Matrices
MatricesMatrices
Matrices
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and Determinants
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems Of
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Diagonalization and eigen
Diagonalization and eigenDiagonalization and eigen
Diagonalization and eigen
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - Mathematics
 

Destaque (6)

Master of Computer Application (MCA) – Semester 4 MC0080
Master of Computer Application (MCA) – Semester 4  MC0080Master of Computer Application (MCA) – Semester 4  MC0080
Master of Computer Application (MCA) – Semester 4 MC0080
 
Master of Computer Application (MCA) – Semester 4 MC0078
Master of Computer Application (MCA) – Semester 4  MC0078Master of Computer Application (MCA) – Semester 4  MC0078
Master of Computer Application (MCA) – Semester 4 MC0078
 
MC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionMC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall session
 
SCSJ3203 - Theory Science Computer - Midterm Paper
SCSJ3203 - Theory Science Computer - Midterm PaperSCSJ3203 - Theory Science Computer - Midterm Paper
SCSJ3203 - Theory Science Computer - Midterm Paper
 
Theory of Computer Science - Post Correspondence Problem
Theory of Computer Science - Post Correspondence ProblemTheory of Computer Science - Post Correspondence Problem
Theory of Computer Science - Post Correspondence Problem
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 

Semelhante a MC0082 –Theory of Computer Science

7.5 lines and_planes_in_space
7.5 lines and_planes_in_space7.5 lines and_planes_in_space
7.5 lines and_planes_in_space
Mahbub Alwathoni
 
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksBeginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
JinTaek Seo
 

Semelhante a MC0082 –Theory of Computer Science (20)

Networking Assignment Help
Networking Assignment HelpNetworking Assignment Help
Networking Assignment Help
 
Stochastic Processes Assignment Help
Stochastic Processes Assignment HelpStochastic Processes Assignment Help
Stochastic Processes Assignment Help
 
Corr And Regress
Corr And RegressCorr And Regress
Corr And Regress
 
Series_Solution_Methods_and_Special_Func.pdf
Series_Solution_Methods_and_Special_Func.pdfSeries_Solution_Methods_and_Special_Func.pdf
Series_Solution_Methods_and_Special_Func.pdf
 
Computer Network Homework Help
Computer Network Homework HelpComputer Network Homework Help
Computer Network Homework Help
 
Curve sketching
Curve sketchingCurve sketching
Curve sketching
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
regression.pptx
regression.pptxregression.pptx
regression.pptx
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Cr-and-Regress.ppt
Cr-and-Regress.pptCr-and-Regress.ppt
Cr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Correlation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social ScienceCorrelation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social Science
 
Permutations 2020
Permutations 2020Permutations 2020
Permutations 2020
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
7.5 lines and_planes_in_space
7.5 lines and_planes_in_space7.5 lines and_planes_in_space
7.5 lines and_planes_in_space
 
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeksBeginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 

Mais de Aravind NC

MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DEMC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
Aravind NC
 
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
Aravind NC
 
MC0084 – Software Project Management & Quality Assurance - Master of Computer...
MC0084 – Software Project Management & Quality Assurance - Master of Computer...MC0084 – Software Project Management & Quality Assurance - Master of Computer...
MC0084 – Software Project Management & Quality Assurance - Master of Computer...
Aravind NC
 

Mais de Aravind NC (8)

MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DEMC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
 
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
MC0083 – Object Oriented Analysis &. Design using UML - Master of Computer Sc...
 
MC0084 – Software Project Management & Quality Assurance - Master of Computer...
MC0084 – Software Project Management & Quality Assurance - Master of Computer...MC0084 – Software Project Management & Quality Assurance - Master of Computer...
MC0084 – Software Project Management & Quality Assurance - Master of Computer...
 
Master of Computer Application (MCA) – Semester 4 MC0079
Master of Computer Application (MCA) – Semester 4  MC0079Master of Computer Application (MCA) – Semester 4  MC0079
Master of Computer Application (MCA) – Semester 4 MC0079
 
Master of Computer Application (MCA) – Semester 4 MC0077
Master of Computer Application (MCA) – Semester 4  MC0077Master of Computer Application (MCA) – Semester 4  MC0077
Master of Computer Application (MCA) – Semester 4 MC0077
 
Master of Computer Application (MCA) – Semester 4 MC0076
Master of Computer Application (MCA) – Semester 4  MC0076Master of Computer Application (MCA) – Semester 4  MC0076
Master of Computer Application (MCA) – Semester 4 MC0076
 
Time travel
Time travelTime travel
Time travel
 
Google x
Google xGoogle x
Google x
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

MC0082 –Theory of Computer Science

  • 1. MC0082 –Theory of Computer Science 1. Define the concept of equivalence relation. Give at least two examples of equivalence relation. Definition: A relation R on a set A is an equivalence relation if and only if R is 1. Reflexive, 2. Symmetric, and 3. Transitive. The definition is motivated by observing that any process of “identification” must behave somewhat like the equality relation, and the equality relation satisfies the reflexive (x = x for all x), symmetric (x = y implies y = x), and transitive (x = y and y = z implies x = z) properties. Example. a) Let R be the relation on the set R real numbers defined by xRy iff x − y is an integer. Prove that R is an equivalence relation on R. Proof. I. Reflexive: Suppose x ∈ R. Then x − x = 0, which is an integer. Thus, xRx. II. Symmetric: Suppose x, y ∈ R and xRy. Then x − y is an integer. Since y − x = −(x − y), y − x is also an integer. Thus, yRx. III. Suppose x, y ∈ R, xRy and yRz. Then x − y and y − z are integers. Thus, the sum (x − y) + (y − z) = x − z is also an integer, and so xRz. Thus, R is an equivalence relation on R. # b). Let R be the relation on the set of real numbers R in Example 1. Prove that if xRx ' and yRy' , then (x + y)R(x' + y'). Proof: Suppose xRx ' and yRy '. In order to show that (x+y)R(x'+y'), we must show that (x + y) − (x ' + y') is an integer. Since (x + y) − (x'+ y') = (x − x') + (y − y'), and since each of x−x ' and y −y ' is an integer (by definition of R), (x−x') + (y −y ') is an integer. Thus, (x + y)R(x ' + y').
  • 2. 2. Prove by Mathematical Induction that Base Step: Let n=0 then the sum of the left side is 0. Since there is nothing to add the expression on the right side is also 0 If n=1 then left side is 1 and right side = Hence the result is true for n=1 Induction Hypothesis: Assume that the result to be true for n=m then Adding the (m+1) th term i.e (m+1)3 to both side of the above equation
  • 3. 3. Prove that a graph G is connected if and only if it has a spanning tree. Suppose that a simple graph G has a spanning tree T. T contains every vertex of G and there is a path in T between any two of its vertices. Because T is a sub graph of G, there is a path in G between any two of its vertices. Hence, G is connected. Now suppose that G is connected. If G is not a tree, it contains a simple circuit. Remove an edge from one of the simple circuits. The resulting sub graph is still connected because any vertices connected via a path containing the removed edge are still connected via a path with the remaining part of the simple circuit. Continue in this fashion until there are no more simple circuits. A tree is produced because the graph remains connected as edges are removed. The resulting tree is a spanning tree because it contains every vertex of G. . 4. Prove that a≡ b(mod m) is an equivalence relation. We simply use, the definition of congruence modulo n: for any two integers a,b, a≡b(modm)⟺ a−b=km, for some k∈ Z. The definitions of the three properties any equivalence relation must, by definition, satisfy: reflexivity, symmetry, transitivity. Reflexivity: for all a∈ Z,a∼a. Is there a k∈ Z such that for integer a, a−a=mk?
  • 4. Symmetry: for all a,b∈ Z, if a∼b, then b∼a. Is there a k2∈ Z such that for integers a,b, if k1 is a integer such that a≡b(modm) so that a−b=mk1 for some integer k1, then b-a=mk_2, and hence b cong a pmod m$? Transitivity: for all a,b∈ Z, if a∼b, and b∼c, then a∼c Can it be shown that: a≡b(mod()m)⟶ k1∈ Z, a−b=mk1 ∃ and b≡c(modm)⟶ k2∈ Z, b−c=mk2, ∃ that there must exist some k3∈ Z such that a−c=mk3? 5. Explain the concept of a Transition graph. A finite directed labeled graph in which each node or vertex of the graph represents a state and the directed edges from one node to another represent transition of a state. All the edges of the transition graph are labeled as input/output. For example, an edge labeled 1/0 specifies that for certain initial state if the input is 1, then the output is 0. Consider the following diagram: In the transition graph as shown in the figure, ○ The initial state, q0, of the system is represented by a circle with an arrow pointing towards it. ○ The final state, q1, is represented by two concentric circles. ○ The directed edges from the initial state to the final state are labeled as input/output. The graph represents the DFA,
  • 5. M = (Q= {q0, q1, q2}, Σ = {0,1}, δ, q0= initial state, F = {q1} ), where δ is given by, δ(q0, 0 ) = q0, δ(q0, 1 ) = q1, δ(q1, 0 ) = q0, δ(q1, 1 ) = q2, δ(q0, 0 ) = q2, δ(q2, 1 ) = q1 Representation of DFA using transition table, In this method, the DFA is represented in the tabular form. This table is called transitional table. There is one row for each state, and one column for each input. Since, in the transition diagram shown in the fig., there are three states, there are three rows for each state. The input symbols are only 0 and 1 so, there are two columns for the input symbols. The transitional table for the diagram is given below. 6. Explain the steps of conversion of Mealy machine into Moore machine
  • 6. Consider the following steps Step 1: For a state qi determine the number of outputs that are available in θ state table of the Mealy machine. Step 2: If the outputs corresponding to state qi in the next state columns are same, then retain state qi as it is. Else, break qi into different states with the number of new states being equal to the number of different outputs of qi. Step 3: Rearrange the states and outputs in the format of Moore machine. The common output of the new state table can be determined by examining the outputs under the next state columns of the Mealy machine. Step 4: If the output in the constructed state table corresponding to the initial state is 1, then this specifies the acceptance of the null string ^ by Mealy machine. Hence, to make both the Mealy and Moore machines equivalent, we either need to ignore the corresponding to null string or we need to insert a new initial state at beginning whose output is 0; the other row elements in this case would remain the same.