Check if a binary string contains 101 using DFA
Project description
contain_101_or_not
A simple Python package to check whether a binary string is accepted by a DFA that recognizes strings containing "101".
🚀 Installation
pip install contain-101-or-not
📦 Usage
from contain_101_or_not import check_accept_of_str
print(check_accept_of_str("1010")) # True
print(check_accept_of_str("0000")) # False
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
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 contain_101_or_not-1.1.0.tar.gz.
File metadata
- Download URL: contain_101_or_not-1.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcfa03fda58f05c3a0ee4be849b0d5a7d751a15cf23caa63968e61b72c715900
|
|
| MD5 |
f9bf37ebf0e8218bbe65d2c7332aecca
|
|
| BLAKE2b-256 |
e4947dbd6078cdfbfb9b7d9c2afcdd1165f65dd5d9d94aab96c8426ea95a46ed
|
File details
Details for the file contain_101_or_not-1.1.0-py3-none-any.whl.
File metadata
- Download URL: contain_101_or_not-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
078b5e6b4bee29cdec6f7d683e23da59271ce406ef426c82e650ac5986d75b27
|
|
| MD5 |
b056c84abdb94ecddc15bd28b224ddb6
|
|
| BLAKE2b-256 |
3af6cd4490cb6b5577020878d8c155a86823a63e9b8af2c0462528b0d51c5cb7
|