SlideShare a Scribd company logo
1 of 2
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )
WINTER 2013, ASSIGNMENT
DRIVE WINTER 2014
PROGRAM BACHELOR OF COMPUTER APPLICATION
SUBJECT CODE & NAME BC0052 – THEORY OF COMPUTER SCIENCE
SEMESTER 5TH SEM
CREDITS 4
MAX. MARKS 60
BK ID B0972
Answer all questions
Q.1. Define g.c.d. (m,n) Solve recursively: (i) f(x, y) = x + y, (ii) g(x, 0) = 0, g(x, y + 1) = g(x, y) + x.
[3+3.5+3.5] =10
ANS:
Definition: If m and n are two non-negative integers then the (greatest common divisor) g.c.d. (m, n)
is defined as the largest positive integer d such that d divides both m and n. Euclidean algorithm
computes the greatest common divisor (g.c.d.) of two non negative integers.
Q.2. Obtain a DFA to accept strings of a’s and b’s starting with the string ab. [10] =10
ANS:
A DFA to accept strings of a’s and b’s starting with the string ab.:
Solution: It is clear that the string should start with ab and so, the minimum string that can be
accepted by the machine is ab. To accept the string ab, we need three states and the
Q.3. Prove by mathematical induction. [10] =10
ANS:
Solution:
Therefore the result is true for n=m+1. Hence by mathematical induction the given result is true for
all positive integers n.
Q.4. Briefly describe Moore and Mealy machines. [10] =10
ANS:
Moore and Mealy Machines: The automaton systems we have discussed so far are limited to
binaryoutput. That is, the systems can either accept or do not accept a string. In those systems, this
acceptability is decided based on the reachability from the initial state to the final state. This
property
Q.5. If G= ({ S}, { S->0S1, S->^}, S) t then find L(G), the language generated by G. [10] =10
ANS:
Solution:
Since S®^ is a production, S=>^. This implies that ^ € L(G)
Now, for all n≥1, we can write the following:
S=>0S1=>00S11...=>0n
S1n
=> 0n
1n
Therefore, 0n
1n
€ L(G).
Q.6. Prove that “A tree G with n vertices has (n–1) edges” [10] =10
ANS:
Proof : We prove this theorem by induction on the number vertices n.
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
(Prefer mailing. Call in emergency )

More Related Content

What's hot

Participación semana 13
Participación semana 13Participación semana 13
Participación semana 13KimberlymoshaR
 
Equations of Tangents and Normals
Equations of Tangents and NormalsEquations of Tangents and Normals
Equations of Tangents and Normalscoburgmaths
 
Mit2 092 f09_lec18
Mit2 092 f09_lec18Mit2 092 f09_lec18
Mit2 092 f09_lec18Rahman Hakim
 
Shapes of Algebra Problem 4 2
Shapes of Algebra Problem 4 2Shapes of Algebra Problem 4 2
Shapes of Algebra Problem 4 2Kathy Favazza
 
Module 6 review
Module 6  review  Module 6  review
Module 6 review jjmosley
 
PPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPU
PPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPUPPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPU
PPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPURAMBABU SIRIPURAPU
 
Asymptotes | WORKING PRINCIPLE OF ASYMPTOTES
Asymptotes | WORKING PRINCIPLE OF ASYMPTOTESAsymptotes | WORKING PRINCIPLE OF ASYMPTOTES
Asymptotes | WORKING PRINCIPLE OF ASYMPTOTESNITESH POONIA
 
Complex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsComplex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsMath Academy Singapore
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical inductionKriti Varshney
 
PAIR OF LINEAR EQUATION IN TWO VARIABLE
PAIR OF LINEAR EQUATION IN TWO VARIABLEPAIR OF LINEAR EQUATION IN TWO VARIABLE
PAIR OF LINEAR EQUATION IN TWO VARIABLENaveen R
 
4.1 apply triangle sum properties
4.1 apply triangle sum properties4.1 apply triangle sum properties
4.1 apply triangle sum propertiesdetwilerr
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equationsRajeevRajeev
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equationsdebmegh
 
Tutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORM
Tutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORMTutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORM
Tutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORMNurul Ainn
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Suddhasheel GHOSH, PhD
 

What's hot (20)

Participación semana 13
Participación semana 13Participación semana 13
Participación semana 13
 
Equations of Tangents and Normals
Equations of Tangents and NormalsEquations of Tangents and Normals
Equations of Tangents and Normals
 
Dda line-algorithm
Dda line-algorithmDda line-algorithm
Dda line-algorithm
 
Mit2 092 f09_lec18
Mit2 092 f09_lec18Mit2 092 f09_lec18
Mit2 092 f09_lec18
 
Shapes of Algebra Problem 4 2
Shapes of Algebra Problem 4 2Shapes of Algebra Problem 4 2
Shapes of Algebra Problem 4 2
 
Ch02 2
Ch02 2Ch02 2
Ch02 2
 
Module 6 review
Module 6  review  Module 6  review
Module 6 review
 
PPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPU
PPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPUPPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPU
PPTs FOR LINEAR EQUATIONS IN TWO VARIABLES BY RAMBABU SIRIPURAPU
 
Asymptotes | WORKING PRINCIPLE OF ASYMPTOTES
Asymptotes | WORKING PRINCIPLE OF ASYMPTOTESAsymptotes | WORKING PRINCIPLE OF ASYMPTOTES
Asymptotes | WORKING PRINCIPLE OF ASYMPTOTES
 
Complex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levelsComplex Numbers 1 - Math Academy - JC H2 maths A levels
Complex Numbers 1 - Math Academy - JC H2 maths A levels
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Good
GoodGood
Good
 
PAIR OF LINEAR EQUATION IN TWO VARIABLE
PAIR OF LINEAR EQUATION IN TWO VARIABLEPAIR OF LINEAR EQUATION IN TWO VARIABLE
PAIR OF LINEAR EQUATION IN TWO VARIABLE
 
4.1 apply triangle sum properties
4.1 apply triangle sum properties4.1 apply triangle sum properties
4.1 apply triangle sum properties
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Bresenham circle
Bresenham circleBresenham circle
Bresenham circle
 
Tutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORM
Tutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORMTutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORM
Tutorial 1 : SIGNIFICANT FIGURES AND STANDARD FORM
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
 

Viewers also liked

Introduction to-automata-theo
Introduction to-automata-theo Introduction to-automata-theo
Introduction to-automata-theo baharn1
 
Introduction to theory of computation
Introduction to theory of computationIntroduction to theory of computation
Introduction to theory of computationVinod Tyagi
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of AutomataFarooq Mian
 
Finite automata intro
Finite automata introFinite automata intro
Finite automata introlavishka_anuj
 
Introduction to Automata Theory, Languages and Computation
Introduction to Automata Theory, Languages and ComputationIntroduction to Automata Theory, Languages and Computation
Introduction to Automata Theory, Languages and ComputationHarisree Sudarsan
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computationprasadmvreddy
 
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...Farwa Ansari
 

Viewers also liked (14)

Introduction
IntroductionIntroduction
Introduction
 
4th sem
4th sem4th sem
4th sem
 
String
StringString
String
 
Introduction to-automata-theo
Introduction to-automata-theo Introduction to-automata-theo
Introduction to-automata-theo
 
Automata 3
Automata 3Automata 3
Automata 3
 
Introduction to theory of computation
Introduction to theory of computationIntroduction to theory of computation
Introduction to theory of computation
 
Finite automata
Finite automataFinite automata
Finite automata
 
Theory of Automata
Theory of AutomataTheory of Automata
Theory of Automata
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Finite automata intro
Finite automata introFinite automata intro
Finite automata intro
 
Introduction to Automata Theory, Languages and Computation
Introduction to Automata Theory, Languages and ComputationIntroduction to Automata Theory, Languages and Computation
Introduction to Automata Theory, Languages and Computation
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
Introduction to Computer theory (Automata Theory) 2nd Edition By Denial I.A. ...
 

Similar to Bc0052 – theory of computer science

Bc0052 theory of computer science
Bc0052   theory of computer scienceBc0052   theory of computer science
Bc0052 theory of computer sciencesmumbahelp
 
Bca1030 basic mathematics
Bca1030  basic mathematicsBca1030  basic mathematics
Bca1030 basic mathematicssmumbahelp
 
2018 mtap for g10 with answers
2018 mtap for g10 with answers2018 mtap for g10 with answers
2018 mtap for g10 with answersJashey Dee
 
Math project core the MSW ( 1 )
Math project core the MSW ( 1 )Math project core the MSW ( 1 )
Math project core the MSW ( 1 )Khalid Al Hanaei
 
Basic Statistics For Non Commerce Students
Basic Statistics For Non Commerce StudentsBasic Statistics For Non Commerce Students
Basic Statistics For Non Commerce StudentsDr. Trilok Kumar Jain
 
Problem statement mathematical foundations
Problem statement mathematical foundationsProblem statement mathematical foundations
Problem statement mathematical foundationsBangaluru
 
Bca3010 computer oriented numerical methods
Bca3010  computer oriented numerical methodsBca3010  computer oriented numerical methods
Bca3010 computer oriented numerical methodssmumbahelp
 
555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.pptSnehSinha6
 
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurMid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurVivekananda Samiti
 
journal of mathematics research
journal of mathematics researchjournal of mathematics research
journal of mathematics researchrikaseorika
 
research paper publication journals
research paper publication journalsresearch paper publication journals
research paper publication journalsrikaseorika
 
Solution cbse-board-class-10-previous-paper-2007
Solution cbse-board-class-10-previous-paper-2007Solution cbse-board-class-10-previous-paper-2007
Solution cbse-board-class-10-previous-paper-2007AMAN KUMAR VISHWAKARMA
 
CBSE Board Class 10 Previous Year Maths Paper 2007 Solution
CBSE Board Class 10 Previous Year Maths Paper 2007 SolutionCBSE Board Class 10 Previous Year Maths Paper 2007 Solution
CBSE Board Class 10 Previous Year Maths Paper 2007 SolutionMATHS BLOGS
 

Similar to Bc0052 – theory of computer science (20)

Bc0052 theory of computer science
Bc0052   theory of computer scienceBc0052   theory of computer science
Bc0052 theory of computer science
 
Bca1030 basic mathematics
Bca1030  basic mathematicsBca1030  basic mathematics
Bca1030 basic mathematics
 
sdfsdf
sdfsdfsdfsdf
sdfsdf
 
2018 mtap for g10 with answers
2018 mtap for g10 with answers2018 mtap for g10 with answers
2018 mtap for g10 with answers
 
Math project core the MSW ( 1 )
Math project core the MSW ( 1 )Math project core the MSW ( 1 )
Math project core the MSW ( 1 )
 
UNIT III.pptx
UNIT III.pptxUNIT III.pptx
UNIT III.pptx
 
Calculus Homework Help
Calculus Homework HelpCalculus Homework Help
Calculus Homework Help
 
M112rev
M112revM112rev
M112rev
 
Basic Statistics For Non Commerce Students
Basic Statistics For Non Commerce StudentsBasic Statistics For Non Commerce Students
Basic Statistics For Non Commerce Students
 
Problem statement mathematical foundations
Problem statement mathematical foundationsProblem statement mathematical foundations
Problem statement mathematical foundations
 
Bca3010 computer oriented numerical methods
Bca3010  computer oriented numerical methodsBca3010  computer oriented numerical methods
Bca3010 computer oriented numerical methods
 
factoring
factoringfactoring
factoring
 
555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.ppt
 
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT KanpurMid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
 
published research papers
published research paperspublished research papers
published research papers
 
journal of mathematics research
journal of mathematics researchjournal of mathematics research
journal of mathematics research
 
research paper publication journals
research paper publication journalsresearch paper publication journals
research paper publication journals
 
Advance algebra
Advance algebraAdvance algebra
Advance algebra
 
Solution cbse-board-class-10-previous-paper-2007
Solution cbse-board-class-10-previous-paper-2007Solution cbse-board-class-10-previous-paper-2007
Solution cbse-board-class-10-previous-paper-2007
 
CBSE Board Class 10 Previous Year Maths Paper 2007 Solution
CBSE Board Class 10 Previous Year Maths Paper 2007 SolutionCBSE Board Class 10 Previous Year Maths Paper 2007 Solution
CBSE Board Class 10 Previous Year Maths Paper 2007 Solution
 

Bc0052 – theory of computer science

  • 1. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601 (Prefer mailing. Call in emergency ) WINTER 2013, ASSIGNMENT DRIVE WINTER 2014 PROGRAM BACHELOR OF COMPUTER APPLICATION SUBJECT CODE & NAME BC0052 – THEORY OF COMPUTER SCIENCE SEMESTER 5TH SEM CREDITS 4 MAX. MARKS 60 BK ID B0972 Answer all questions Q.1. Define g.c.d. (m,n) Solve recursively: (i) f(x, y) = x + y, (ii) g(x, 0) = 0, g(x, y + 1) = g(x, y) + x. [3+3.5+3.5] =10 ANS: Definition: If m and n are two non-negative integers then the (greatest common divisor) g.c.d. (m, n) is defined as the largest positive integer d such that d divides both m and n. Euclidean algorithm computes the greatest common divisor (g.c.d.) of two non negative integers. Q.2. Obtain a DFA to accept strings of a’s and b’s starting with the string ab. [10] =10 ANS: A DFA to accept strings of a’s and b’s starting with the string ab.: Solution: It is clear that the string should start with ab and so, the minimum string that can be accepted by the machine is ab. To accept the string ab, we need three states and the Q.3. Prove by mathematical induction. [10] =10
  • 2. ANS: Solution: Therefore the result is true for n=m+1. Hence by mathematical induction the given result is true for all positive integers n. Q.4. Briefly describe Moore and Mealy machines. [10] =10 ANS: Moore and Mealy Machines: The automaton systems we have discussed so far are limited to binaryoutput. That is, the systems can either accept or do not accept a string. In those systems, this acceptability is decided based on the reachability from the initial state to the final state. This property Q.5. If G= ({ S}, { S->0S1, S->^}, S) t then find L(G), the language generated by G. [10] =10 ANS: Solution: Since S®^ is a production, S=>^. This implies that ^ € L(G) Now, for all n≥1, we can write the following: S=>0S1=>00S11...=>0n S1n => 0n 1n Therefore, 0n 1n € L(G). Q.6. Prove that “A tree G with n vertices has (n–1) edges” [10] =10 ANS: Proof : We prove this theorem by induction on the number vertices n. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601 (Prefer mailing. Call in emergency )