SlideShare a Scribd company logo
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.

More Related Content

What's hot

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 linesitutor
 
Jacobi iteration method
Jacobi iteration methodJacobi iteration method
Jacobi iteration method
MONIRUL ISLAM
 
Lesson 14 a - parametric equations
Lesson 14 a - parametric equationsLesson 14 a - parametric equations
Lesson 14 a - parametric equationsJean Leano
 
Determinants
DeterminantsDeterminants
Determinants
Rivan001
 
Linear Functions
Linear FunctionsLinear Functions
Linear Functionskliegey524
 
Iterative methods
Iterative methodsIterative methods
Iterative methodsKt Silva
 
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
Yong Heui Cho
 
Inverse Matrix & Determinants
Inverse Matrix & DeterminantsInverse Matrix & Determinants
Inverse Matrix & Determinantsitutor
 
Matrices and determinants-1
Matrices and determinants-1Matrices and determinants-1
Matrices and determinants-1
sudersana viswanathan
 
Week 7
Week 7Week 7
Week 7
EasyStudy3
 
Matrices
MatricesMatrices
MatricesNORAIMA
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and Determinants
AarjavPinara
 
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
Marcela Carrillo
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
oscar
 
Diagonalization and eigen
Diagonalization and eigenDiagonalization and eigen
Diagonalization and eigen
Paresh Parmar
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - Mathematics
Drishti Bhalla
 

What's hot (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
 

Viewers also liked

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
Aravind NC
 
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
Aravind NC
 
MC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionMC0078 SMU 2013 Fall session
MC0078 SMU 2013 Fall sessionNarinder Kumar
 
SCSJ3203 - Theory Science Computer - Midterm Paper
SCSJ3203 - Theory Science Computer - Midterm PaperSCSJ3203 - Theory Science Computer - Midterm Paper
SCSJ3203 - Theory Science Computer - Midterm Paper
Abdul Khaliq
 
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
Karan Thakkar
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
Marina Santini
 

Viewers also liked (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
 

Similar to MC0082 –Theory of Computer Science

Networking Assignment Help
Networking Assignment HelpNetworking Assignment Help
Networking Assignment Help
Computer Network Assignment Help
 
Stochastic Processes Assignment Help
Stochastic Processes Assignment HelpStochastic Processes Assignment Help
Stochastic Processes Assignment Help
Statistics Assignment Help
 
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
mohamedtawfik358886
 
Computer Network Homework Help
Computer Network Homework HelpComputer Network Homework Help
Computer Network Homework Help
Computer Network Assignment Help
 
Curve sketching
Curve sketchingCurve sketching
Curve sketching
Vishal Bajaj
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
Matlab Assignment Experts
 
regression.pptx
regression.pptxregression.pptx
regression.pptx
Rashi Agarwal
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).ppt
MuhammadAftab89
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
BAGARAGAZAROMUALD2
 
Cr-and-Regress.ppt
Cr-and-Regress.pptCr-and-Regress.ppt
Cr-and-Regress.ppt
RidaIrfan10
 
Correlation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social ScienceCorrelation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social Science
ssuser71ac73
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
HarunorRashid74
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
krunal soni
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
MoinPasha12
 
Permutations 2020
Permutations 2020Permutations 2020
Permutations 2020
Robert Geofroy
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
aakashray33
 
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_spaceMahbub 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
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
Excel Homework Help
 

Similar to 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
 
Correlation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social ScienceCorrelation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social Science
 
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
 
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
 

More from 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 DEAravind 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
 
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
Aravind NC
 
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
Aravind NC
 
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
Aravind NC
 
Time travel
Time travelTime travel
Time travel
Aravind NC
 

More from 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
 

Recently uploaded

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 

Recently uploaded (20)

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 

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.