Skip to content
/ DFA Public

DFA which accepts zero or the number divisible by 5

Notifications You must be signed in to change notification settings

seonkyuKim/DFA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

DFA which accepts zero or the number devisible by 5

DFA(Deterministic Finite Accepter) which accepts zero or the number devisible by 5.

Input value is string of 0s and 1s, interpreted as a binary representation of an integer.

DFA returns 'Accept' or 'Not accept' depending on input value.

Language

python3

Usage

Run DFA.py

python DFA.py

Program will give you description:

Input binary value of 0 and 1.
If you want to exit program, input 'exit'.

Input string of binary number:

0101

If the input is not binary, it gives error:

Error: Input value is not binary.

To exit the program, type 'exit'

exit

About

DFA which accepts zero or the number divisible by 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages