SlideShare una empresa de 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.

Más contenido relacionado

La actualidad más candente

Linear functions and modeling
Linear functions and modelingLinear functions and modeling
Linear functions and modelingIVY 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 methodMONIRUL ISLAM
 
Lesson 14 a - parametric equations
Lesson 14 a - parametric equationsLesson 14 a - parametric equations
Lesson 14 a - parametric equationsJean Leano
 
Determinants
DeterminantsDeterminants
DeterminantsRivan001
 
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 derivativesYong Heui Cho
 
Inverse Matrix & Determinants
Inverse Matrix & DeterminantsInverse Matrix & Determinants
Inverse Matrix & Determinantsitutor
 
Matrices
MatricesMatrices
MatricesNORAIMA
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and DeterminantsAarjavPinara
 
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 OfMarcela Carrillo
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinantsoscar
 
Diagonalization and eigen
Diagonalization and eigenDiagonalization and eigen
Diagonalization and eigenParesh Parmar
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - MathematicsDrishti Bhalla
 

La actualidad más candente (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
 

Destacado

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 MC0080Aravind 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 MC0078Aravind 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 PaperAbdul 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 ProblemKaran Thakkar
 

Destacado (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 a MC0082 –Theory of Computer Science

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.pdfmohamedtawfik358886
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).pptMuhammadAftab89
 
Cr-and-Regress.ppt
Cr-and-Regress.pptCr-and-Regress.ppt
Cr-and-Regress.pptRidaIrfan10
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.pptkrunal soni
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.pptMoinPasha12
 
Correlation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social ScienceCorrelation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social Sciencessuser71ac73
 
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_jintaeksJinTaek Seo
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework HelpExcel Homework Help
 

Similar 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
 

Más 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 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 MC0079Aravind 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 MC0077Aravind 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 MC0076Aravind NC
 

Más 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

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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.christianmathematics
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
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.pdfPoh-Sun Goh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
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.pptxAreebaZafar22
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 

Último (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.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.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

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.