Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モジュラス 4 をバイナリで表示する有限ステート マシンの作成方法を教えてもらえますか?
最後の 2 ビットが 00 の場合、2 進数 mod 4 は 0 になるので、そこから始めます。それに別の 1 または 0 を追加すると、最後の 2 桁がどうなるかを考えて、可能な状態ごとにそれを行います。
この (大きな) ヒントを残します: モジュラス 4 で可能な結果の数を考えてみてください。それがわかれば、マシンがいくつの状態を持つことができるかがわかります。