This package refers to the topic of automata theory, which includes DFA, NDFA, Mealy machines, Moore machines and Finite state machine.
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.8.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file AutomaPy-1.0.8.tar.gz
.
File metadata
- Download URL: AutomaPy-1.0.8.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65df939515718d2d4599b6a73b3d2d0d4a1657bbacdcb0c44cbd9898fb1a974e |
|
MD5 | 8b24167d1d3def5991c3274c6d1f2e34 |
|
BLAKE2b-256 | c8bc67b3e509e2a36dbd0c02cd739e89015526867037412c29128965ad873f8a |
File details
Details for the file AutomaPy-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: AutomaPy-1.0.8-py3-none-any.whl
- Upload date:
- Size: 4.4 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 | 4919b0406087bdc4192ffcb634919129aa5807b6a55001910b547a096ae40a1c |
|
MD5 | 70ec737f6cef4286e2ba2f6c14170719 |
|
BLAKE2b-256 | dab917b97d888cdffcaa84d722c36ef85a68b0fd2f3ea37487bcbf70ea9d65b2 |