Boolean algebra, Flip-flops, K-Maps, Verilog

State assignment and state reduction