SlideShare una empresa de Scribd logo
1 de 15
Topics:
Introduction
Automata Theory
Symbols and alphabet
Language
Sets
Function
Implication
Valid/invalid computation
1
Theory of Computation
(ToC):
 What is Computation?
 Ans: Computation is calculation, solving, making decision
or any task done by computer/calculator/ any machine.
 What is Theory?
 Ans: The term Theory defines capabilities, limitations of
those machines.
 Purpose of the Theory of Computation:
“Develop formal mathematical models of computation that
reflect real-world computers.”
2
Automata TheoryAutomata Theory:
Automata theory deals with the definitions and
properties of mathematical models of computation.
These models play a role in several applied areas of
computer science.
Finite automata, is used in text processing, compilers,
and hardware design.
Another model, called the context-free grammar, is
used in programming languages and artificial
intelligence.
Automata theory is an excellent place to begin the study
of the theory of computation.3
MathematicalMathematical
Terminology:Terminology:
 Symbol:
Symbol is the basic building block of ToC.
Example: Can be anything like: a,b,c,A,B,Z,0,1,…etc
 Alphabet:
An alphabet is a finite set of symbols.
We use the symbol ∑ (sigma) to denote an alphabet.
 Examples:
∑ = {0,1} : Binary alphabet
∑ = {A~Z, 0~9} : Alphanumeric alphabet
∑ = {a,b,c, ….,z} : Alphabet of small letters
4
MathematicalMathematical
Terminology:Terminology:
 String:
A string or word is a finite sequence/group of symbols
chosen from the alphabet (∑)
Examples:
01011 = is a string from the binary alphabet ∑{0,1}
abacbc = is a string from the alphabet ∑{a, b, c}
3786 = is a string over {0,1,2,3,4,5,6,7,8,9}
Empty string is the string with no symbols, denoted by
ε (epsilon) or λ
Length of a string, denoted by |w|, is equal to the
number of symbols/characters in the string5
MathematicalMathematical
Terminology:Terminology:
 Example:
w = classroom |w| = 9
w = 010100 |w| = 6
w = ε |w| = 0
The position of a symbol in a string is denoted by (w)
 Example: w = classroom
w(3) = a, w(4) = s, w(5) = s
 Concatenation of strings:
x = abc, y = pqr
Concatenation of x and y:
x◦y (or xy) = abcpqr
6
MathematicalMathematical
Terminology:Terminology:
7
}111,110,101,100,011,010,001,000{
...}1,0}{11,10,01,00{
}11,10,01,00{
}1,0{
}{
23
2
1
0
=
==
ΣΣ=Σ
=Σ
=Σ
=Σ λ
 Power of Alphabet:Power of Alphabet:
If ∑ is an alphabet, then, ∑k
= is the set of all strings
of length k.
Example: Let, ∑ = {0,1}, then
MathematicalMathematical
Terminology:Terminology:
 Language:Language:
 Language is a set of strings chosen from the alphabet ∑
 Language L could be finite or infinite
 Example: Suppose ∑ = { a,b }
L1 = Set of all strings of length 2
= { aa, ab, ba, bb } [Finite]
L2 = Set of all strings of length 3
= { aaa, aab, aba, abb, baa, bab, bba, bbb }[Finite]
L3 = Set of all strings where each string starts with “a”
= { a, aa, ab, aaa, aab, aba, abb,…….. } [Infinite]
8
MathematicalMathematical
Terminology:Terminology:
 Set:Set:
A set is a collection of elements.
To indicate that x is an element of the set S, we write x ∈
S
The statement that x is not in S is written as x S.∉
 Example:
The set of all natural numbers 0,1,2.. is denoted by
N = {0,1,2,3,... }
When the need arises, we use more explicit notation, in
which we write S = { i ≥ 0, i is even };We read this as
“S is the set of all i, such that i is greater than zero, and i9
MathematicalMathematical
Terminology:Terminology:
SEQUENCES AND TUPLES:
A sequence of objects is a list of these objects in some
order.
For example, the sequence 7, 21, 57 would be written
(7, 21, 57)
Finite sequences often are called tuples.
A sequence with k elements is a k-tuple. Thus (7,21, 57)
is a 3 -tuple. A 2-tuple is also called a pair.
10
MathematicalMathematical
Terminology:Terminology:
Cartesian product or cross product:Cartesian product or cross product:
If A and B are two sets, the Cartesian product or
cross product of A and B, written A x B
If A = {1, 2} and B {x, y, z},
A x B = { (1, x), (1, y), (1, z), (2, x), (2, y), (2,
z) }.
11
Implication:Implication:
So the question is where we use those theorem, idea for
computation?
Just consider a simple C Programming language.
# void main ()
{
int a,b;
etc;
etc;
}
C programming language = Set of all “valid” program12
Valid / InvalidValid / Invalid
Computation:Computation:
 Let us consider an example, where a string is given
and have to calculate that the string is present in
the language or not ?
 Given, L is a Finite language;
∑ = { a, b }
L1 = { aa, ab, ba, bb }
String, S = aaa
Here, S = aaa is not present in the language and we can
calculate this and thus is invalid operation for computation.
13
Valid / InvalidValid / Invalid
Computation:Computation:
Let us consider another example, where a string is
given and have to calculate that the string is present
in the language or not ?
 Given, L is a infinite language;
∑ = { a, b }
L2 = { a, aa, aaa, ab, aab, abb,…. }
String, S = baba
Here, S = baba will not be present in the language So this is
an example of invalid operation for computation.
14
Thank You !!!
Any Questions ???
15

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
0.0 Introduction to theory of computation
0.0 Introduction to theory of computation0.0 Introduction to theory of computation
0.0 Introduction to theory of computation
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
Symbol table in compiler Design
Symbol table in compiler DesignSymbol table in compiler Design
Symbol table in compiler Design
 
Flat unit 3
Flat unit 3Flat unit 3
Flat unit 3
 
Introduction To Autumata Theory
 Introduction To Autumata Theory Introduction To Autumata Theory
Introduction To Autumata Theory
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Hamiltonian path
Hamiltonian pathHamiltonian path
Hamiltonian path
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prolog
 
INTRODUCTION TO ALGORITHMS Third Edition
INTRODUCTION TO ALGORITHMS Third EditionINTRODUCTION TO ALGORITHMS Third Edition
INTRODUCTION TO ALGORITHMS Third Edition
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of Algorithms
 
TOC 1 | Introduction to Theory of Computation
TOC 1 | Introduction to Theory of ComputationTOC 1 | Introduction to Theory of Computation
TOC 1 | Introduction to Theory of Computation
 
Context free grammar
Context free grammar Context free grammar
Context free grammar
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
 
Theory of computation Lec1
Theory of computation Lec1Theory of computation Lec1
Theory of computation Lec1
 
Bootstrapping in Compiler
Bootstrapping in CompilerBootstrapping in Compiler
Bootstrapping in Compiler
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 

Destacado

Partial compute function
Partial compute functionPartial compute function
Partial compute functionRajendran
 
Seminar on Quantum Automata and Languages
Seminar on Quantum Automata and LanguagesSeminar on Quantum Automata and Languages
Seminar on Quantum Automata and Languagesranjanphu
 
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
 
Automata languages and computation
Automata languages and computationAutomata languages and computation
Automata languages and computationKarthik Velou
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingSaurabh Kaushik
 
Theory of automata and formal languages Unit 4
Theory of automata and formal languages Unit 4Theory of automata and formal languages Unit 4
Theory of automata and formal languages Unit 4Abhimanyu Mishra
 
Introduction to fa and dfa
Introduction to fa  and dfaIntroduction to fa  and dfa
Introduction to fa and dfadeepinderbedi
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processingrohitnayak
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 028threspecter
 
theory of computation lecture 01
theory of computation lecture 01theory of computation lecture 01
theory of computation lecture 018threspecter
 
Communication Concepts, Theories And Models1
Communication Concepts, Theories And Models1Communication Concepts, Theories And Models1
Communication Concepts, Theories And Models1Suchitra Patnaik
 

Destacado (18)

Theory of computation Lec3 dfa
Theory of computation Lec3 dfaTheory of computation Lec3 dfa
Theory of computation Lec3 dfa
 
Theory of computation Lec2
Theory of computation Lec2Theory of computation Lec2
Theory of computation Lec2
 
Partial compute function
Partial compute functionPartial compute function
Partial compute function
 
Seminar on Quantum Automata and Languages
Seminar on Quantum Automata and LanguagesSeminar on Quantum Automata and Languages
Seminar on Quantum Automata and Languages
 
Week Two Part I
Week Two Part IWeek Two Part I
Week Two Part I
 
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
 
Fafl notes [2010] (sjbit)
Fafl notes [2010] (sjbit)Fafl notes [2010] (sjbit)
Fafl notes [2010] (sjbit)
 
Automata languages and computation
Automata languages and computationAutomata languages and computation
Automata languages and computation
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Theory of automata and formal languages Unit 4
Theory of automata and formal languages Unit 4Theory of automata and formal languages Unit 4
Theory of automata and formal languages Unit 4
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Introduction to fa and dfa
Introduction to fa  and dfaIntroduction to fa  and dfa
Introduction to fa and dfa
 
Turing machines
Turing machinesTuring machines
Turing machines
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
theory of computation lecture 02
theory of computation lecture 02theory of computation lecture 02
theory of computation lecture 02
 
theory of computation lecture 01
theory of computation lecture 01theory of computation lecture 01
theory of computation lecture 01
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Communication Concepts, Theories And Models1
Communication Concepts, Theories And Models1Communication Concepts, Theories And Models1
Communication Concepts, Theories And Models1
 

Similar a Theory of computing

Theory of Computation Lecture Notes
Theory of Computation Lecture NotesTheory of Computation Lecture Notes
Theory of Computation Lecture NotesFellowBuddy.com
 
Computational Complexity: Introduction-Turing Machines-Undecidability
Computational Complexity: Introduction-Turing Machines-UndecidabilityComputational Complexity: Introduction-Turing Machines-Undecidability
Computational Complexity: Introduction-Turing Machines-UndecidabilityAntonis Antonopoulos
 
Automata
AutomataAutomata
AutomataGaditek
 
Automata
AutomataAutomata
AutomataGaditek
 
Data Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description LogicsData Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description LogicsAdila Krisnadhi
 
Overview_of_a_computational_model_-_Languages_1.ppt
Overview_of_a_computational_model_-_Languages_1.pptOverview_of_a_computational_model_-_Languages_1.ppt
Overview_of_a_computational_model_-_Languages_1.pptSanthoshS508159
 
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015rusbase
 
Dsm as theory building
Dsm as theory buildingDsm as theory building
Dsm as theory buildingClarkTony
 
Computational Complexity: Oracles and the Polynomial Hierarchy
Computational Complexity: Oracles and the Polynomial HierarchyComputational Complexity: Oracles and the Polynomial Hierarchy
Computational Complexity: Oracles and the Polynomial HierarchyAntonis Antonopoulos
 
Introduction to complexity theory assignment
Introduction to complexity theory assignmentIntroduction to complexity theory assignment
Introduction to complexity theory assignmenttesfahunegn minwuyelet
 
Design and Analysis of Algorithms Exam Help
Design and Analysis of Algorithms Exam HelpDesign and Analysis of Algorithms Exam Help
Design and Analysis of Algorithms Exam HelpProgramming Exam Help
 
3.1 intro toautomatatheory h1
3.1 intro toautomatatheory  h13.1 intro toautomatatheory  h1
3.1 intro toautomatatheory h1Rajendran
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals reviewElifTech
 

Similar a Theory of computing (20)

Theory of Computation Lecture Notes
Theory of Computation Lecture NotesTheory of Computation Lecture Notes
Theory of Computation Lecture Notes
 
Unit -I Toc.pptx
Unit -I Toc.pptxUnit -I Toc.pptx
Unit -I Toc.pptx
 
Computational Complexity: Introduction-Turing Machines-Undecidability
Computational Complexity: Introduction-Turing Machines-UndecidabilityComputational Complexity: Introduction-Turing Machines-Undecidability
Computational Complexity: Introduction-Turing Machines-Undecidability
 
10651372.ppt
10651372.ppt10651372.ppt
10651372.ppt
 
Automata
AutomataAutomata
Automata
 
Automata
AutomataAutomata
Automata
 
Statistics lab 1
Statistics lab 1Statistics lab 1
Statistics lab 1
 
Mod1.pdf
Mod1.pdfMod1.pdf
Mod1.pdf
 
Data Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description LogicsData Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description Logics
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Overview_of_a_computational_model_-_Languages_1.ppt
Overview_of_a_computational_model_-_Languages_1.pptOverview_of_a_computational_model_-_Languages_1.ppt
Overview_of_a_computational_model_-_Languages_1.ppt
 
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
 
Dsm as theory building
Dsm as theory buildingDsm as theory building
Dsm as theory building
 
Computational Complexity: Oracles and the Polynomial Hierarchy
Computational Complexity: Oracles and the Polynomial HierarchyComputational Complexity: Oracles and the Polynomial Hierarchy
Computational Complexity: Oracles and the Polynomial Hierarchy
 
Introduction to complexity theory assignment
Introduction to complexity theory assignmentIntroduction to complexity theory assignment
Introduction to complexity theory assignment
 
Algorithms on Strings
Algorithms on StringsAlgorithms on Strings
Algorithms on Strings
 
Design and Analysis of Algorithms Exam Help
Design and Analysis of Algorithms Exam HelpDesign and Analysis of Algorithms Exam Help
Design and Analysis of Algorithms Exam Help
 
Flat unit 1
Flat unit 1Flat unit 1
Flat unit 1
 
3.1 intro toautomatatheory h1
3.1 intro toautomatatheory  h13.1 intro toautomatatheory  h1
3.1 intro toautomatatheory h1
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals review
 

Más de Bipul Roy Bpl

Specification and complexity - algorithm
Specification and complexity - algorithmSpecification and complexity - algorithm
Specification and complexity - algorithmBipul Roy Bpl
 
Sequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsSequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsBipul Roy Bpl
 
Test design techniques
Test design techniquesTest design techniques
Test design techniquesBipul Roy Bpl
 
Software engineering quality assurance and testing
Software engineering quality assurance and testingSoftware engineering quality assurance and testing
Software engineering quality assurance and testingBipul Roy Bpl
 
Garment management system
Garment management systemGarment management system
Garment management systemBipul Roy Bpl
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computationBipul Roy Bpl
 

Más de Bipul Roy Bpl (8)

Specification and complexity - algorithm
Specification and complexity - algorithmSpecification and complexity - algorithm
Specification and complexity - algorithm
 
Sequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsSequential circuit-Digital Electronics
Sequential circuit-Digital Electronics
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Software engineering quality assurance and testing
Software engineering quality assurance and testingSoftware engineering quality assurance and testing
Software engineering quality assurance and testing
 
DFD level-0 to 1
DFD level-0 to 1DFD level-0 to 1
DFD level-0 to 1
 
Garment management system
Garment management systemGarment management system
Garment management system
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Finite automata
Finite automataFinite automata
Finite automata
 

Último

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 

Último (20)

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 

Theory of computing

  • 1. Topics: Introduction Automata Theory Symbols and alphabet Language Sets Function Implication Valid/invalid computation 1
  • 2. Theory of Computation (ToC):  What is Computation?  Ans: Computation is calculation, solving, making decision or any task done by computer/calculator/ any machine.  What is Theory?  Ans: The term Theory defines capabilities, limitations of those machines.  Purpose of the Theory of Computation: “Develop formal mathematical models of computation that reflect real-world computers.” 2
  • 3. Automata TheoryAutomata Theory: Automata theory deals with the definitions and properties of mathematical models of computation. These models play a role in several applied areas of computer science. Finite automata, is used in text processing, compilers, and hardware design. Another model, called the context-free grammar, is used in programming languages and artificial intelligence. Automata theory is an excellent place to begin the study of the theory of computation.3
  • 4. MathematicalMathematical Terminology:Terminology:  Symbol: Symbol is the basic building block of ToC. Example: Can be anything like: a,b,c,A,B,Z,0,1,…etc  Alphabet: An alphabet is a finite set of symbols. We use the symbol ∑ (sigma) to denote an alphabet.  Examples: ∑ = {0,1} : Binary alphabet ∑ = {A~Z, 0~9} : Alphanumeric alphabet ∑ = {a,b,c, ….,z} : Alphabet of small letters 4
  • 5. MathematicalMathematical Terminology:Terminology:  String: A string or word is a finite sequence/group of symbols chosen from the alphabet (∑) Examples: 01011 = is a string from the binary alphabet ∑{0,1} abacbc = is a string from the alphabet ∑{a, b, c} 3786 = is a string over {0,1,2,3,4,5,6,7,8,9} Empty string is the string with no symbols, denoted by ε (epsilon) or λ Length of a string, denoted by |w|, is equal to the number of symbols/characters in the string5
  • 6. MathematicalMathematical Terminology:Terminology:  Example: w = classroom |w| = 9 w = 010100 |w| = 6 w = ε |w| = 0 The position of a symbol in a string is denoted by (w)  Example: w = classroom w(3) = a, w(4) = s, w(5) = s  Concatenation of strings: x = abc, y = pqr Concatenation of x and y: x◦y (or xy) = abcpqr 6
  • 7. MathematicalMathematical Terminology:Terminology: 7 }111,110,101,100,011,010,001,000{ ...}1,0}{11,10,01,00{ }11,10,01,00{ }1,0{ }{ 23 2 1 0 = == ΣΣ=Σ =Σ =Σ =Σ λ  Power of Alphabet:Power of Alphabet: If ∑ is an alphabet, then, ∑k = is the set of all strings of length k. Example: Let, ∑ = {0,1}, then
  • 8. MathematicalMathematical Terminology:Terminology:  Language:Language:  Language is a set of strings chosen from the alphabet ∑  Language L could be finite or infinite  Example: Suppose ∑ = { a,b } L1 = Set of all strings of length 2 = { aa, ab, ba, bb } [Finite] L2 = Set of all strings of length 3 = { aaa, aab, aba, abb, baa, bab, bba, bbb }[Finite] L3 = Set of all strings where each string starts with “a” = { a, aa, ab, aaa, aab, aba, abb,…….. } [Infinite] 8
  • 9. MathematicalMathematical Terminology:Terminology:  Set:Set: A set is a collection of elements. To indicate that x is an element of the set S, we write x ∈ S The statement that x is not in S is written as x S.∉  Example: The set of all natural numbers 0,1,2.. is denoted by N = {0,1,2,3,... } When the need arises, we use more explicit notation, in which we write S = { i ≥ 0, i is even };We read this as “S is the set of all i, such that i is greater than zero, and i9
  • 10. MathematicalMathematical Terminology:Terminology: SEQUENCES AND TUPLES: A sequence of objects is a list of these objects in some order. For example, the sequence 7, 21, 57 would be written (7, 21, 57) Finite sequences often are called tuples. A sequence with k elements is a k-tuple. Thus (7,21, 57) is a 3 -tuple. A 2-tuple is also called a pair. 10
  • 11. MathematicalMathematical Terminology:Terminology: Cartesian product or cross product:Cartesian product or cross product: If A and B are two sets, the Cartesian product or cross product of A and B, written A x B If A = {1, 2} and B {x, y, z}, A x B = { (1, x), (1, y), (1, z), (2, x), (2, y), (2, z) }. 11
  • 12. Implication:Implication: So the question is where we use those theorem, idea for computation? Just consider a simple C Programming language. # void main () { int a,b; etc; etc; } C programming language = Set of all “valid” program12
  • 13. Valid / InvalidValid / Invalid Computation:Computation:  Let us consider an example, where a string is given and have to calculate that the string is present in the language or not ?  Given, L is a Finite language; ∑ = { a, b } L1 = { aa, ab, ba, bb } String, S = aaa Here, S = aaa is not present in the language and we can calculate this and thus is invalid operation for computation. 13
  • 14. Valid / InvalidValid / Invalid Computation:Computation: Let us consider another example, where a string is given and have to calculate that the string is present in the language or not ?  Given, L is a infinite language; ∑ = { a, b } L2 = { a, aa, aaa, ab, aab, abb,…. } String, S = baba Here, S = baba will not be present in the language So this is an example of invalid operation for computation. 14
  • 15. Thank You !!! Any Questions ??? 15