Professional Documents
Culture Documents
Introduction:
DFA or Deterministic Finite Automata is a finite state machine which accepts a
string(under some specific condition) if it reaches a final state, otherwise rejects it.
Functional Feature:
Given a string consisting of characters a and b, check if the string starts and
ends with the same character or not. If it does, print ‘Yes’ else print ‘No’.
For the above problem statement, we must first build a DFA machine. DFA
machine is similar to a flowchart with various states and transitions.
Language: Python
IDE/Notebook : Jupyter Notebook