Skip to main content

This package refers to the topic of automata theory, which includes DFA, NDFA, Mealy machines, and Moore machines.

Project description

theorytoolkit

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

  1. Design a program for accepting decimal number divisible by 2.
from automatalib 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


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.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AutomaPy-1.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file AutomaPy-1.0.1.tar.gz.

File metadata

  • Download URL: AutomaPy-1.0.1.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

Hashes for AutomaPy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5883f88411eb7122cf5ca9b3d74cecf2c411c6e41e9bf6fa7e680b4bebff9a71
MD5 1f995730bad6cb528d710fa055c9069c
BLAKE2b-256 58a6b6103f87f9dca3f793c8b5a0226f20039ee1bc6edf8ef58d3c80092a2aad

See more details on using hashes here.

File details

Details for the file AutomaPy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: AutomaPy-1.0.1-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

Hashes for AutomaPy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa9b101aa07947424d2b4794c60906b2905fba3f5a470b2c7dc7e8854a44390c
MD5 86bfbfbbd6d00324a326ee5bb2db351f
BLAKE2b-256 e05e26e306fa9057e2eba4209beaae3ba7c52c0fd963b8371bbd820906fdbddb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page