尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Theory of Computation TOC | Sample Assignment | www.expertsmind.com




Answer 2a. DFA M=(Q,S,d, q0,F).for any two states q,q’ЄQ,
      q≈q’ w єΣ*: δ*(q, w) ó δ*(q’, w)
      where δ*(q,e)=q and δ*(q,ax)= δ*( δ(q,a),x)
      A relation is ≈ is equivalence if

   (i) It is reflexive i.e. x≡x
   (ii) It is symmetric ie x≡y => y≡x
   (iii) It is transitive ie x≡yΛy≡z =>x≡z

      wєΣ δ(q, w) ≡ δ(q’, w)
ó aєΣ xєΣ* : δ*(δ(q, a),x)єF≡ δ*(δ(q’, a),x)єF
ó aєΣ xєΣ* : δ*(q,ax)єF ≡ δ*(q’,ax)єF
ó w’єΣ* : δ*(q,w’)єF ≡ δ*(q’,w’)єF
óq≡q’
2b. state diagram for M=(Q,S,d, q0,F)
                                         0                0,1
                    0
                                                                     q0   q1   q2   q3   q4
                                q1               q4
              q0                                                0    -    F    -    F    F
                                                      0
                        1       1            0                  1    -    -    -    -    F
                                                  q3
                                    q2
                                                                00   F    F    F    F    F
                            1
                                                                01   -    F    -    F    F
                                1
                                                                10   -    -    -    -    F
      [q0] = {q0, q2}                                           11   -    -    -    -    F
      [q1] = {q1, q3}
                                                                000 F     F    F    F    F
      [q4] = {q4}
                                                                001 F     F    F    F    F

                                                                010 -     F    -    F    F

                                                                011 -     F    -    F    F

                                                                100 F     F    F    F    F

                                                                101 -     -    -    -    F
state diagram for M’
                                                  0                      0,1
                         0
                                                              q4
                q0
                q0
                                                                   0
                             1           1            0

                                             q2
                                     1


                                         1




4(a) set of all strings that have abba as substring.

        b            a
                                                  a
                                                                   a,b
            a            b                   b            a


                 b


4(b) set of all strings that do not have abba as substring.
            b                    a                a
                                                                               a,b
                     a                   b                    b            a


                                 b

                                 b

More Related Content

Viewers also liked

Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
FellowBuddy.com
 
Mis assignment
Mis assignmentMis assignment
Mis assignment
Kinshook Chaturvedi
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework help
Assignmentpedia
 
MIS assignment for share
MIS assignment for shareMIS assignment for share
MIS assignment for share
honeyshah
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...
appasami
 
Cs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papersCs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papers
appasami
 

Viewers also liked (6)

Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
Computer Graphics and Multimedia Techniques Paper (RTU VI Semester)
 
Mis assignment
Mis assignmentMis assignment
Mis assignment
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework help
 
MIS assignment for share
MIS assignment for shareMIS assignment for share
MIS assignment for share
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...
 
Cs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papersCs2303 theory of computation all anna University question papers
Cs2303 theory of computation all anna University question papers
 

More from Expertsmind IT Education Pvt Ltd.

Types of cells
Types of cellsTypes of cells
Taxonomy
TaxonomyTaxonomy
Osmosis
OsmosisOsmosis
Nitrogen fixations
Nitrogen fixations Nitrogen fixations
Mitosis
Mitosis Mitosis
Membrane biology
Membrane biologyMembrane biology
Kingdom monera
Kingdom moneraKingdom monera
Introduction to cell
Introduction to cellIntroduction to cell
Introduction to cell
Expertsmind IT Education Pvt Ltd.
 
Homeostasis
HomeostasisHomeostasis
Growth & development
Growth & developmentGrowth & development
Growth & development
Expertsmind IT Education Pvt Ltd.
 
General biology
General biologyGeneral biology
Fungi
FungiFungi
Eukaryotic cell structure
Eukaryotic cell structureEukaryotic cell structure
Eukaryotic cell structure
Expertsmind IT Education Pvt Ltd.
 
DNA
DNADNA
Cytoplasm
CytoplasmCytoplasm
Biology organisms
Biology organismsBiology organisms
Bacteria kingdom characteristics
Bacteria kingdom characteristicsBacteria kingdom characteristics
Bacteria kingdom characteristics
Expertsmind IT Education Pvt Ltd.
 
Bacteria and their energy
Bacteria and their energyBacteria and their energy
Bacteria and their energy
Expertsmind IT Education Pvt Ltd.
 
All prokaryotes are in the monera kingdom
All prokaryotes are in the monera kingdomAll prokaryotes are in the monera kingdom
All prokaryotes are in the monera kingdom
Expertsmind IT Education Pvt Ltd.
 
Algae
AlgaeAlgae

More from Expertsmind IT Education Pvt Ltd. (20)

Types of cells
Types of cellsTypes of cells
Types of cells
 
Taxonomy
TaxonomyTaxonomy
Taxonomy
 
Osmosis
OsmosisOsmosis
Osmosis
 
Nitrogen fixations
Nitrogen fixations Nitrogen fixations
Nitrogen fixations
 
Mitosis
Mitosis Mitosis
Mitosis
 
Membrane biology
Membrane biologyMembrane biology
Membrane biology
 
Kingdom monera
Kingdom moneraKingdom monera
Kingdom monera
 
Introduction to cell
Introduction to cellIntroduction to cell
Introduction to cell
 
Homeostasis
HomeostasisHomeostasis
Homeostasis
 
Growth & development
Growth & developmentGrowth & development
Growth & development
 
General biology
General biologyGeneral biology
General biology
 
Fungi
FungiFungi
Fungi
 
Eukaryotic cell structure
Eukaryotic cell structureEukaryotic cell structure
Eukaryotic cell structure
 
DNA
DNADNA
DNA
 
Cytoplasm
CytoplasmCytoplasm
Cytoplasm
 
Biology organisms
Biology organismsBiology organisms
Biology organisms
 
Bacteria kingdom characteristics
Bacteria kingdom characteristicsBacteria kingdom characteristics
Bacteria kingdom characteristics
 
Bacteria and their energy
Bacteria and their energyBacteria and their energy
Bacteria and their energy
 
All prokaryotes are in the monera kingdom
All prokaryotes are in the monera kingdomAll prokaryotes are in the monera kingdom
All prokaryotes are in the monera kingdom
 
Algae
AlgaeAlgae
Algae
 

Recently uploaded

Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
anilsa9823
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
An Introduction to All Data Enterprise Integration
An Introduction to All Data Enterprise IntegrationAn Introduction to All Data Enterprise Integration
An Introduction to All Data Enterprise Integration
Safe Software
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024
ThousandEyes
 
So You've Lost Quorum: Lessons From Accidental Downtime
So You've Lost Quorum: Lessons From Accidental DowntimeSo You've Lost Quorum: Lessons From Accidental Downtime
So You've Lost Quorum: Lessons From Accidental Downtime
ScyllaDB
 
Real-Time Persisted Events at Supercell
Real-Time Persisted Events at  SupercellReal-Time Persisted Events at  Supercell
Real-Time Persisted Events at Supercell
ScyllaDB
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
UiPathCommunity
 
An All-Around Benchmark of the DBaaS Market
An All-Around Benchmark of the DBaaS MarketAn All-Around Benchmark of the DBaaS Market
An All-Around Benchmark of the DBaaS Market
ScyllaDB
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
Tobias Schneck
 
From NCSA to the National Research Platform
From NCSA to the National Research PlatformFrom NCSA to the National Research Platform
From NCSA to the National Research Platform
Larry Smarr
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
Building a Semantic Layer of your Data Platform
Building a Semantic Layer of your Data PlatformBuilding a Semantic Layer of your Data Platform
Building a Semantic Layer of your Data Platform
Enterprise Knowledge
 
Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0
Neeraj Kumar Singh
 
Guidelines for Effective Data Visualization
Guidelines for Effective Data VisualizationGuidelines for Effective Data Visualization
Guidelines for Effective Data Visualization
UmmeSalmaM1
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Mydbops
 
Day 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data ManipulationDay 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data Manipulation
UiPathCommunity
 
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to SuccessDynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
ScyllaDB
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
Ortus Solutions, Corp
 

Recently uploaded (20)

Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
An Introduction to All Data Enterprise Integration
An Introduction to All Data Enterprise IntegrationAn Introduction to All Data Enterprise Integration
An Introduction to All Data Enterprise Integration
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 
New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024
 
So You've Lost Quorum: Lessons From Accidental Downtime
So You've Lost Quorum: Lessons From Accidental DowntimeSo You've Lost Quorum: Lessons From Accidental Downtime
So You've Lost Quorum: Lessons From Accidental Downtime
 
Real-Time Persisted Events at Supercell
Real-Time Persisted Events at  SupercellReal-Time Persisted Events at  Supercell
Real-Time Persisted Events at Supercell
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
 
An All-Around Benchmark of the DBaaS Market
An All-Around Benchmark of the DBaaS MarketAn All-Around Benchmark of the DBaaS Market
An All-Around Benchmark of the DBaaS Market
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
 
From NCSA to the National Research Platform
From NCSA to the National Research PlatformFrom NCSA to the National Research Platform
From NCSA to the National Research Platform
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
Building a Semantic Layer of your Data Platform
Building a Semantic Layer of your Data PlatformBuilding a Semantic Layer of your Data Platform
Building a Semantic Layer of your Data Platform
 
Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0
 
Guidelines for Effective Data Visualization
Guidelines for Effective Data VisualizationGuidelines for Effective Data Visualization
Guidelines for Effective Data Visualization
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
 
Day 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data ManipulationDay 4 - Excel Automation and Data Manipulation
Day 4 - Excel Automation and Data Manipulation
 
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to SuccessDynamoDB to ScyllaDB: Technical Comparison and the Path to Success
DynamoDB to ScyllaDB: Technical Comparison and the Path to Success
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
 

Theory of computation assignment help

  • 1. Theory of Computation TOC | Sample Assignment | www.expertsmind.com Answer 2a. DFA M=(Q,S,d, q0,F).for any two states q,q’ЄQ, q≈q’ w єΣ*: δ*(q, w) ó δ*(q’, w) where δ*(q,e)=q and δ*(q,ax)= δ*( δ(q,a),x) A relation is ≈ is equivalence if (i) It is reflexive i.e. x≡x (ii) It is symmetric ie x≡y => y≡x (iii) It is transitive ie x≡yΛy≡z =>x≡z wєΣ δ(q, w) ≡ δ(q’, w) ó aєΣ xєΣ* : δ*(δ(q, a),x)єF≡ δ*(δ(q’, a),x)єF ó aєΣ xєΣ* : δ*(q,ax)єF ≡ δ*(q’,ax)єF ó w’єΣ* : δ*(q,w’)єF ≡ δ*(q’,w’)єF óq≡q’
  • 2. 2b. state diagram for M=(Q,S,d, q0,F) 0 0,1 0 q0 q1 q2 q3 q4 q1 q4 q0 0 - F - F F 0 1 1 0 1 - - - - F q3 q2 00 F F F F F 1 01 - F - F F 1 10 - - - - F [q0] = {q0, q2} 11 - - - - F [q1] = {q1, q3} 000 F F F F F [q4] = {q4} 001 F F F F F 010 - F - F F 011 - F - F F 100 F F F F F 101 - - - - F
  • 3. state diagram for M’ 0 0,1 0 q4 q0 q0 0 1 1 0 q2 1 1 4(a) set of all strings that have abba as substring. b a a a,b a b b a b 4(b) set of all strings that do not have abba as substring. b a a a,b a b b a b b
  翻译: