I have a circuit and I should draw a moore diagram (state diagram) for that.  The problem is that every state can have 5 inputs and this makes the question hard for me.  I tried about 20 times to draw that diagram and every time I failed.  Can anyone help?   
How can I draw a Moore diagram for a given circuit?
automata;finite automata
Don't try to draw the automata. Because there will be 32 states each having five transitions. Rather try to describe the transition function and output as hinted by DylanSp. i.e. q01001 -> 1 -> q11001 (output 1), meaning if switches 2,5 are on and you put on switch 1, the lamp is lighted.Another one.q11001->2->q10001 (output 0), meaning if switch 1,2 and 5 are on and you put off switch 2 than the lamp is unlighted.I assume that input consists of a sequence of 1,2,3,4,5 indicating which switch is flipped. starting state is q00000. I assume, final state will be probably those transitions where lamp is lighted, if that is what you are trying to do.