ChatDiagram
theory of computation · automata · DFA

DFA for Binary Numbers Divisible by 3

유형 상태 다이어그램표준 OMG UML 2.5.1 §14 + Harel (1987) statechart엔진 schematex-state업데이트됨 2026. 5. 27.
DFA for Binary Numbers Divisible by 3
Drawing preview
요청 내용

“A DFA over {0, 1} that accepts binary numbers divisible by 3. States q0, q1 and q2 track the remainder; q0 is the start state and the accepting state.”

그렇다면Change it to divisible by 5Name the states by their remainder
이 도면에 담긴 내용

그 이면의 의사결정을 읽어 보세요.

01

State represent remainder modulo 3 (0, 1, 2).

02Transitions

on 0, state = (state*2) % 3; on 1, state = (state*2+1) % 3.

03

Accepting state is q0 (remainder 0), indicated by a note.

When modeling finite state machines that accept regular languages based on numeric modulo properties.

모든 상태 다이어그램 템플릿 보기 →