SlideShare a Scribd company logo
Theory of Computation
By Rushabh Wadkar
Topics to be covered
Introduction to TOC
i. Solvability of a problem
ii. Order of an
algorithm(asymptotic
notations)
iii. Set theory
iv. Graphs and trees
Formal languages
Day 1
Introduction to TOC
In theoretical computer science and mathematics, the theory of computation is
the branch that deals with how efficiently problems can be solved on a model of
computation, using an algorithm.
The theory of computation can be considered the creation of models of all kinds
in the field of computer science. Therefore, mathematics and logic are used.
Solvability of a problem
Solvable Problems
● The problem has a definite solution.
● The problem will be solved in finite number
of steps.
● Example: Shortest Path problems
Unsolvable Problems
● The problem has no definite solution.
● The solution doesn’t exist yet. No finite
steps can provide u with a solution.
● Example: Division by Zero
All problems are divided into 2 categories, Solvable and Unsolvable
Königsberg
bridge problem
The Königsberg bridge problem
asks if the seven bridges of the city
of Königsberg (formerly in Germany
but now known as Kaliningrad and part of
Russia) over the river Preger can all
be traversed in a single trip without
doubling back, with the additional
requirement that the trip ends in the
same place it began.
Königsberg
bridge problem
Let us consider each land like a
node of a graph. And the bridges
are the edges connecting the
nodes.
The degree of each node is odd,
hence it is not possible to start from
a particular land and come back
there without traversing a bridge
more than once.
PROBLEM
SOLVABLE UNSOLVABLE
DECIDABLE UNDECIDABLE
Can be moved to
● Algorithm
+
Procedure
exists
● Only
Procedure
exists
Asymptotic Notations
● f(n)=O( g(n))
"Big O(micron)" – upper bound => worst case
● f(n) = Ω(g(n))
"Big Omega" – lower bound => best case
● f(n) = θ(g(n))
"Big Theta" – upper & lower bound => "average" case
Set theory
● (d1) A∩B = df {x: x∈A & x∈B} [simple intersection]
● (d2) A–B = df {x: x∈A & x≠B} [set-difference]
● (d3) A∪B = df {x: x∈A ∨ x∈B} [simple union]
● (d4) •(f) = df {x: ∃Y(Y∈f & x∈Y)} [general union]
● (d5) €(f) = df {x: ∀Y(Y∈f → x∈Y)} [general intersection]
Relations
● R is a relation => R is a set of ordered pair
(a,b)∈AxB
● R is a relation from A to B iff it satisfies the following restrictions
dom(R) ⊆ A
ran(R) ⊆ B
Functions
● A function is, by definition, a relation R satisfying the following
restriction.
∀xyz(xRy & xRz .→ y=z)
No two images will have same preimage.
DeMorgan’s Law
● (A∪B)’= A’∩ B’
● (A∩B)’= A’∪ B’
Important Set Properties
● Disjoint Sets: (A∩B) = ∅
● Size of Set= |S|, No. of elements in a set
● Graph consists of edges and
nodes.
● A non-cyclic graph is called a
tree.
● There exist directed and
undirected graphs.
Formal Languages & its comparison
Language: English Formal Language
(For a fan)
Symbols: (A . . . Z)
(a . . . z)
0 & 1
On and off states
Alphabet: Set of all symbols
(A, B . . . Y, Z, a, b . . . y, z)
Set of all symbols
(0 , 1)
Strings: Any set of words
(including, these, themselves) (0 , 1, 01, 10, 001, . . . )
End of Day 1
www.linkedin.com/in/wadkar-rushabh
@RushabhWadkar
Thank you...

More Related Content

PPTX
Limits and continuity powerpoint
PPTX
Linear functions
PDF
Limits and Continuity - Intuitive Approach part 1
PPTX
2.5polynomials
PPT
Functions limits and continuity
PPSX
Elizabeth& Valarie - Linear Function
PPSX
Types of functions and their domain & range - mohd noor
PDF
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)
Limits and continuity powerpoint
Linear functions
Limits and Continuity - Intuitive Approach part 1
2.5polynomials
Functions limits and continuity
Elizabeth& Valarie - Linear Function
Types of functions and their domain & range - mohd noor
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)

What's hot (20)

PPT
Limit & Derivative Problems by ANURAG TYAGI CLASSES (ATC)
PPT
Limit and continuity (2)
PPT
Limits and continuity
PPT
Chapter 2
PPTX
limits and continuity
PDF
Chapter 9 differentiation
PPTX
CBSE Class 12 Mathematics formulas
PPT
1551 limits and continuity
ODP
Simultaneous equation
PPT
functions limits and continuity
PPTX
Module 2 Lesson 2 Notes
DOCX
Implicit differentiation
PPTX
Limit and continuity
PDF
limits and continuity
PPTX
Diapositivas unidad 1
PPTX
PPS
Differentiation
PPT
Polinomials in cd
PDF
Pre-Cal 20S January 15, 2009
PPT
Simultaneous Equations Practical Construction
Limit & Derivative Problems by ANURAG TYAGI CLASSES (ATC)
Limit and continuity (2)
Limits and continuity
Chapter 2
limits and continuity
Chapter 9 differentiation
CBSE Class 12 Mathematics formulas
1551 limits and continuity
Simultaneous equation
functions limits and continuity
Module 2 Lesson 2 Notes
Implicit differentiation
Limit and continuity
limits and continuity
Diapositivas unidad 1
Differentiation
Polinomials in cd
Pre-Cal 20S January 15, 2009
Simultaneous Equations Practical Construction
Ad

Similar to Theory of Computation Introduction Session (20)

PDF
Basic Foundations of Automata Theory
PDF
Discrete mathematics
PPTX
Unit-1 (Mathematical Notations) Theory of Computation PPT
PDF
Criticalthinking
PPTX
theory of computation lecture 01
PPT
algorithms-1 master in computer application
PPT
analysis of algorithms and asymptotic complexity
PPTX
Unitjhdksjfksdjfksjfhikdlfjiksdfds 1.pptx
PDF
Formal methods 4 - Z notation
PDF
Graphtheory
PDF
P versus NP
PDF
Dynamic Programming From CS 6515(Fibonacci, LIS, LCS))
PDF
Graph theory
DOCX
Theoryofcomp science
PPT
lecture07 dicrete mathematics relation .ppt
PPTX
Topology Matters in Communication
PPTX
Path & application(ds)2
PPTX
Key Guidelines for Low-Income Housing.ptx
PDF
Topics In Algorithmic Graph Theory 1st Edition Lowell W Beineke
PDF
Cs6402 design and analysis of algorithms may june 2016 answer key
Basic Foundations of Automata Theory
Discrete mathematics
Unit-1 (Mathematical Notations) Theory of Computation PPT
Criticalthinking
theory of computation lecture 01
algorithms-1 master in computer application
analysis of algorithms and asymptotic complexity
Unitjhdksjfksdjfksjfhikdlfjiksdfds 1.pptx
Formal methods 4 - Z notation
Graphtheory
P versus NP
Dynamic Programming From CS 6515(Fibonacci, LIS, LCS))
Graph theory
Theoryofcomp science
lecture07 dicrete mathematics relation .ppt
Topology Matters in Communication
Path & application(ds)2
Key Guidelines for Low-Income Housing.ptx
Topics In Algorithmic Graph Theory 1st Edition Lowell W Beineke
Cs6402 design and analysis of algorithms may june 2016 answer key
Ad

More from Rushabh2428 (6)

PDF
Theory of Computation FSM Grammar Minimisation and Normal Forms
PDF
Theory of Computation Grammar Concepts and Problems
PDF
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
PDF
Theory of Computation FSM Conversions and Problems
PDF
Theory of Computation Basics of Finite Acceptors
PDF
Theory of Computation Basic Concepts and Grammar
Theory of Computation FSM Grammar Minimisation and Normal Forms
Theory of Computation Grammar Concepts and Problems
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation FSM Conversions and Problems
Theory of Computation Basics of Finite Acceptors
Theory of Computation Basic Concepts and Grammar

Recently uploaded (20)

PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Lesson notes of climatology university.
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Classroom Observation Tools for Teachers
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Complications of Minimal Access Surgery at WLH
202450812 BayCHI UCSC-SV 20250812 v17.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Lesson notes of climatology university.
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
A systematic review of self-coping strategies used by university students to ...
Classroom Observation Tools for Teachers
O5-L3 Freight Transport Ops (International) V1.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Presentation on HIE in infants and its manifestations
Computing-Curriculum for Schools in Ghana
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Complications of Minimal Access Surgery at WLH

Theory of Computation Introduction Session

  • 1. Theory of Computation By Rushabh Wadkar
  • 2. Topics to be covered Introduction to TOC i. Solvability of a problem ii. Order of an algorithm(asymptotic notations) iii. Set theory iv. Graphs and trees Formal languages Day 1
  • 3. Introduction to TOC In theoretical computer science and mathematics, the theory of computation is the branch that deals with how efficiently problems can be solved on a model of computation, using an algorithm. The theory of computation can be considered the creation of models of all kinds in the field of computer science. Therefore, mathematics and logic are used.
  • 4. Solvability of a problem Solvable Problems ● The problem has a definite solution. ● The problem will be solved in finite number of steps. ● Example: Shortest Path problems Unsolvable Problems ● The problem has no definite solution. ● The solution doesn’t exist yet. No finite steps can provide u with a solution. ● Example: Division by Zero All problems are divided into 2 categories, Solvable and Unsolvable
  • 5. Königsberg bridge problem The Königsberg bridge problem asks if the seven bridges of the city of Königsberg (formerly in Germany but now known as Kaliningrad and part of Russia) over the river Preger can all be traversed in a single trip without doubling back, with the additional requirement that the trip ends in the same place it began.
  • 6. Königsberg bridge problem Let us consider each land like a node of a graph. And the bridges are the edges connecting the nodes. The degree of each node is odd, hence it is not possible to start from a particular land and come back there without traversing a bridge more than once.
  • 7. PROBLEM SOLVABLE UNSOLVABLE DECIDABLE UNDECIDABLE Can be moved to ● Algorithm + Procedure exists ● Only Procedure exists
  • 8. Asymptotic Notations ● f(n)=O( g(n)) "Big O(micron)" – upper bound => worst case ● f(n) = Ω(g(n)) "Big Omega" – lower bound => best case ● f(n) = θ(g(n)) "Big Theta" – upper & lower bound => "average" case
  • 9. Set theory ● (d1) A∩B = df {x: x∈A & x∈B} [simple intersection] ● (d2) A–B = df {x: x∈A & x≠B} [set-difference] ● (d3) A∪B = df {x: x∈A ∨ x∈B} [simple union] ● (d4) •(f) = df {x: ∃Y(Y∈f & x∈Y)} [general union] ● (d5) €(f) = df {x: ∀Y(Y∈f → x∈Y)} [general intersection]
  • 10. Relations ● R is a relation => R is a set of ordered pair (a,b)∈AxB ● R is a relation from A to B iff it satisfies the following restrictions dom(R) ⊆ A ran(R) ⊆ B
  • 11. Functions ● A function is, by definition, a relation R satisfying the following restriction. ∀xyz(xRy & xRz .→ y=z) No two images will have same preimage.
  • 12. DeMorgan’s Law ● (A∪B)’= A’∩ B’ ● (A∩B)’= A’∪ B’
  • 13. Important Set Properties ● Disjoint Sets: (A∩B) = ∅ ● Size of Set= |S|, No. of elements in a set
  • 14. ● Graph consists of edges and nodes. ● A non-cyclic graph is called a tree. ● There exist directed and undirected graphs.
  • 15. Formal Languages & its comparison Language: English Formal Language (For a fan) Symbols: (A . . . Z) (a . . . z) 0 & 1 On and off states Alphabet: Set of all symbols (A, B . . . Y, Z, a, b . . . y, z) Set of all symbols (0 , 1) Strings: Any set of words (including, these, themselves) (0 , 1, 01, 10, 001, . . . )
  • 16. End of Day 1 www.linkedin.com/in/wadkar-rushabh @RushabhWadkar Thank you...