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 (6)

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

Similar to Theory of computation assignment help (20)

PPT
PDF
16%20 lecture
PPT
Lect21 Engin112
PDF
กลุ่ม3
PPT
Automata
PDF
20 ฟิสิกส์นิวเคลียร์
PDF
20ฟิสิกส์นิวเคลียร์
PPT
Finite automata
PDF
คลื่นกล
PDF
คลื่นกล
PDF
Digital notes
PDF
Saes tables
PDF
Pan2
PPT
Deterministic Finite Automata
PDF
การกำหนดตัวแปร
PDF
Basics of Analogue Filters
PDF
แสงและทัศนอุปกรณ์
PPT
Moore and mealy machines
PDF
ข้อสอบ Pat 1 + เฉลย
PDF
Cpm 14 06 2009 Paper 1 12th (Abcd) Code B
16%20 lecture
Lect21 Engin112
กลุ่ม3
Automata
20 ฟิสิกส์นิวเคลียร์
20ฟิสิกส์นิวเคลียร์
Finite automata
คลื่นกล
คลื่นกล
Digital notes
Saes tables
Pan2
Deterministic Finite Automata
การกำหนดตัวแปร
Basics of Analogue Filters
แสงและทัศนอุปกรณ์
Moore and mealy machines
ข้อสอบ Pat 1 + เฉลย
Cpm 14 06 2009 Paper 1 12th (Abcd) Code B
Ad

More from Expertsmind IT Education Pvt Ltd. (20)

Recently uploaded (20)

PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
STKI Israel Market Study 2025 version august
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Hybrid model detection and classification of lung cancer
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Five Habits of High-Impact Board Members
DOCX
search engine optimization ppt fir known well about this
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
The various Industrial Revolutions .pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
Modernising the Digital Integration Hub
PPT
What is a Computer? Input Devices /output devices
Web Crawler for Trend Tracking Gen Z Insights.pptx
Getting Started with Data Integration: FME Form 101
STKI Israel Market Study 2025 version august
Tartificialntelligence_presentation.pptx
Chapter 5: Probability Theory and Statistics
Hybrid model detection and classification of lung cancer
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
A comparative study of natural language inference in Swahili using monolingua...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Five Habits of High-Impact Board Members
search engine optimization ppt fir known well about this
WOOl fibre morphology and structure.pdf for textiles
Benefits of Physical activity for teenagers.pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
The various Industrial Revolutions .pptx
NewMind AI Weekly Chronicles – August ’25 Week III
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Modernising the Digital Integration Hub
What is a Computer? Input Devices /output devices

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