This package refers to the topic of automata theory, which includes DFA, NDFA, Mealy machines, and Moore machines.
Project description
AutomaPy
The package contains a set of tools and algorithms for theoretical computer science, which could include automata theory as well as other topics.
Examples of How To Use (AutomaPy)
- Design a program for accepting decimal number divisible by 2.
from AutomaPy import DFA
result = DFA()
result.addState("A", {"0": "A", "1": "B"}, initial_state=True, final_state=True)
result.addState("B", {"0": "A", "1": "B"})
print(result.decimalNumberDivisibleByTwo("10")) # Decimal number of "10" is 2
print(result.decimalNumberDivisibleByTwo("110")) # Decimal number of "10" is 6
print(result.decimalNumberDivisibleByTwo("101")) # Decimal number of "10" is 5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
AutomaPy-1.0.5.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file AutomaPy-1.0.5.tar.gz.
File metadata
- Download URL: AutomaPy-1.0.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55b01be3762dbd1814ecf6543a53c9eb18131c874b610af368776ce1ec799d8e
|
|
| MD5 |
85f7871c2d50cdd95bed5b2af855b0ef
|
|
| BLAKE2b-256 |
bcdde6e9ad0e95f405eeb200bc9c92dfa8805475961052e4dee875b5ead5498e
|
File details
Details for the file AutomaPy-1.0.5-py3-none-any.whl.
File metadata
- Download URL: AutomaPy-1.0.5-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cc32e58ccb59ed03a142efdf0a956d0e2f0110cdd2cd063bbc74b0a66c423c4
|
|
| MD5 |
4d0cec00896f791f5655cc540da950c4
|
|
| BLAKE2b-256 |
8dd06e6f787f8a8301c0b79b2f27af7552cea3b084ed3b6090707e84e8c27b7b
|