You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Python implementation of a Deterministic Finite Automata (DFA), which is a simple abstract machine that recognizes patterns in strings. The implementation provides a basic framework for defining and working with DFAs.
38
5
39
-
## Class`DFA`
6
+
## Class`DFA`
40
7
41
8
The `DFA` class represents a DFA. It has the following methods:
42
9
@@ -50,7 +17,7 @@ This method is the constructor for the `DFA` class. It takes the following param
50
17
*`initial_state`: The state in which the DFA starts.
51
18
*`final_states`: A list of the accept states of the DFA.
52
19
53
-
### Example Usage
20
+
### ExampleUsage
54
21
55
22
Here's an example of how to use the `DFA` class to define:
56
23
@@ -184,7 +151,7 @@ This method is the constructor for the `DFA` class. It takes the following param
184
151
*`initial_state`: The state in which the DFA starts.
185
152
*`final_states`: A list of the accept states of the DFA.
186
153
187
-
### Example Usage
154
+
### ExampleUsage
188
155
189
156
Here's an example of how to use the `NFA` class to define:
190
157
@@ -234,7 +201,7 @@ The DPDA class is initialized with several parameters that define the properties
234
201
*`initial_stack_symbol`: the start symbol for the stack
235
202
*`final_states`: a set of states that are designated as accept states
236
203
237
-
### Example Usage
204
+
### ExampleUsage
238
205
239
206
Here's an example of how to use the `DPDA` class to define:
0 commit comments