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

Uploaded Source

Built Distribution

AutomaPy-1.0.0-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

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