SlideShare una empresa de Scribd logo
1 de 16
Descargar para leer sin conexión
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...

Más contenido relacionado

La actualidad más candente

Chapter 9 differentiation
Chapter 9  differentiationChapter 9  differentiation
Chapter 9 differentiation
atiqah ayie
 
limits and continuity
limits and continuitylimits and continuity
limits and continuity
Elias Dinsa
 

La actualidad más candente (20)

Limit & Derivative Problems by ANURAG TYAGI CLASSES (ATC)
Limit & Derivative Problems by ANURAG TYAGI CLASSES (ATC)Limit & Derivative Problems by ANURAG TYAGI CLASSES (ATC)
Limit & Derivative Problems by ANURAG TYAGI CLASSES (ATC)
 
Limit and continuity (2)
Limit and continuity (2)Limit and continuity (2)
Limit and continuity (2)
 
Limits and continuity
Limits and continuityLimits and continuity
Limits and continuity
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
limits and continuity
limits and continuity limits and continuity
limits and continuity
 
Chapter 9 differentiation
Chapter 9  differentiationChapter 9  differentiation
Chapter 9 differentiation
 
CBSE Class 12 Mathematics formulas
CBSE Class 12 Mathematics formulasCBSE Class 12 Mathematics formulas
CBSE Class 12 Mathematics formulas
 
1551 limits and continuity
1551 limits and continuity1551 limits and continuity
1551 limits and continuity
 
Simultaneous equation
Simultaneous equationSimultaneous equation
Simultaneous equation
 
functions limits and continuity
functions limits and continuityfunctions limits and continuity
functions limits and continuity
 
Module 2 Lesson 2 Notes
Module 2 Lesson 2 NotesModule 2 Lesson 2 Notes
Module 2 Lesson 2 Notes
 
Implicit differentiation
Implicit differentiationImplicit differentiation
Implicit differentiation
 
Limit and continuity
Limit and continuityLimit and continuity
Limit and continuity
 
limits and continuity
limits and continuitylimits and continuity
limits and continuity
 
Diapositivas unidad 1
Diapositivas unidad 1Diapositivas unidad 1
Diapositivas unidad 1
 
Limits
LimitsLimits
Limits
 
Differentiation
DifferentiationDifferentiation
Differentiation
 
Polinomials in cd
Polinomials in cdPolinomials in cd
Polinomials in cd
 
Pre-Cal 20S January 15, 2009
Pre-Cal 20S January 15, 2009Pre-Cal 20S January 15, 2009
Pre-Cal 20S January 15, 2009
 
Simultaneous Equations Practical Construction
Simultaneous Equations Practical ConstructionSimultaneous Equations Practical Construction
Simultaneous Equations Practical Construction
 

Similar a Theory of Computation Introduction Session

Dynamic programming class 16
Dynamic programming class 16Dynamic programming class 16
Dynamic programming class 16
Kumar
 
Skiena algorithm 2007 lecture19 introduction to np complete
Skiena algorithm 2007 lecture19 introduction to np completeSkiena algorithm 2007 lecture19 introduction to np complete
Skiena algorithm 2007 lecture19 introduction to np complete
zukun
 
Stack squeues lists
Stack squeues listsStack squeues lists
Stack squeues lists
James Wong
 

Similar a Theory of Computation Introduction Session (20)

555_Spring12_topic06.ppt
555_Spring12_topic06.ppt555_Spring12_topic06.ppt
555_Spring12_topic06.ppt
 
dynamic-programming
dynamic-programmingdynamic-programming
dynamic-programming
 
DAA - UNIT 4 - Engineering.pptx
DAA - UNIT 4 - Engineering.pptxDAA - UNIT 4 - Engineering.pptx
DAA - UNIT 4 - Engineering.pptx
 
Recursion in Java
Recursion in JavaRecursion in Java
Recursion in Java
 
OI.ppt
OI.pptOI.ppt
OI.ppt
 
AlgorithmAnalysis2.ppt
AlgorithmAnalysis2.pptAlgorithmAnalysis2.ppt
AlgorithmAnalysis2.ppt
 
Combinatorial optimization CO-1
Combinatorial optimization CO-1Combinatorial optimization CO-1
Combinatorial optimization CO-1
 
dynamic programming Rod cutting class
dynamic programming Rod cutting classdynamic programming Rod cutting class
dynamic programming Rod cutting class
 
Hprec2 5
Hprec2 5Hprec2 5
Hprec2 5
 
Introduction to optimizxation
Introduction to optimizxationIntroduction to optimizxation
Introduction to optimizxation
 
Unit 5
Unit 5Unit 5
Unit 5
 
Unit 5
Unit 5Unit 5
Unit 5
 
Finite fields
Finite fields Finite fields
Finite fields
 
Dynamic programming class 16
Dynamic programming class 16Dynamic programming class 16
Dynamic programming class 16
 
Lp and ip programming cp 9
Lp and ip programming cp 9Lp and ip programming cp 9
Lp and ip programming cp 9
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
 
Hprec2 4
Hprec2 4Hprec2 4
Hprec2 4
 
Skiena algorithm 2007 lecture19 introduction to np complete
Skiena algorithm 2007 lecture19 introduction to np completeSkiena algorithm 2007 lecture19 introduction to np complete
Skiena algorithm 2007 lecture19 introduction to np complete
 
Stack squeues lists
Stack squeues listsStack squeues lists
Stack squeues lists
 
Stacks queues lists
Stacks queues listsStacks queues lists
Stacks queues lists
 

Más de Rushabh2428 (6)

Theory of Computation FSM Grammar Minimisation and Normal Forms
Theory of Computation FSM Grammar Minimisation and Normal FormsTheory of Computation FSM Grammar Minimisation and Normal Forms
Theory of Computation FSM Grammar Minimisation and Normal Forms
 
Theory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and ProblemsTheory of Computation Grammar Concepts and Problems
Theory of Computation Grammar Concepts and Problems
 
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping LemmaTheory of Computation Regular Expressions, Minimisation & Pumping Lemma
Theory of Computation Regular Expressions, Minimisation & Pumping Lemma
 
Theory of Computation FSM Conversions and Problems
Theory of Computation FSM Conversions and ProblemsTheory of Computation FSM Conversions and Problems
Theory of Computation FSM Conversions and Problems
 
Theory of Computation Basics of Finite Acceptors
Theory of Computation Basics of Finite AcceptorsTheory of Computation Basics of Finite Acceptors
Theory of Computation Basics of Finite Acceptors
 
Theory of Computation Basic Concepts and Grammar
Theory of Computation Basic Concepts and GrammarTheory of Computation Basic Concepts and Grammar
Theory of Computation Basic Concepts and Grammar
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
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
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
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.
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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 ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
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
 

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...