Make group Z from A,B,C
Every one in Group W,X,Y turns there light on and every one not in a group that recive this becomes group Z
Start at the start I'm in group 1 every one else dose not have a group, we will call this state 1,???
State 1 ???
makes 2 from 1
Asks When making 2 did anyone in 1 get a signle
if yes Then sovles Anser 1
if no go to state 1 2 ???
State 1 2 ???
Make 3 from 1,2
Asks When making 3 did anyone in 1 get a signle
Asks When making 3 did anyone in 2 get a signle
if both is true then solved anser 2
if none then go to state 1, 2, 3, 3, ???
if one is true go to state 1, 2, 3, ???
state 1, 2, 3, ???
Make 4 from 1,2,3
Ask when making 4 did anyone in group 1 get a single
Ask when making 4 did anyone in group 2 get a single
Ask when making 4 did anyone in group 3 get a signle
if all true anser is 3
go to one of the folling State 1,2,3,4??? 1,2,3,4,4??? 1,2,3,4,4,4???
State 1, 2, 3, 3, ???
Make 4 from 1,2,3
Ask when making 4 did anyone in 3 get a signle
Ask when making 4 did anyone in 3 not get a signle
if differnt undefine 4 and the people in group 3 that got a signle becomes group 4 go to state 1,2,3,4???
Ask when making 4 did anyone in group 1 get a single
Ask when making 4 did anyone in group 2 get a single
if every one got a sigle then anser is 4
go to one of the folling State 1,2,3,3,4??? 1,2,3,3,4,4??? 1,2,3,3,4,4,4??? 1,2,3,3,4,4,4,4???
State 1,2,3,4???
Make 5 from 1,2,3,4
Ask when making 5 did anyone in group 1 get a single
Ask when making 5 did anyone in group 2 get a single
Ask when making 5 did anyone in group 3 get a single
Ask when making 5 did anyone in group 4 get a single
if every one got a sigle then anser is 4
go to one of the folling State 1,2,3,3,4,5??? 1,2,3,3,4,5,5??? 1,2,3,3,4,5,5,5??? 1,2,3,3,4,5,5,5,5???
State 1,2,3,4,4???
Make 5 from 1,2,3,4
Ask when making 5 did anyone in group 4 get a single
Ask when making 5 did anyone in group 4 not get a single
if differnt undefine 5 and the people in group 4 that got a signle becomes group 5 go to state 1,2,3,4,5???
Ask when making 5 did anyone in group 1 get a single
Ask when making 5 did anyone in group 2 get a single
Ask when making 5 did anyone in group 3 get a single
if every one got a sigle then anser is 5
got to one of the folling State 1,2,3,3,4,5??? 1,2,3,3,4,5,5??? 1,2,3,3,4,5,5,5??? 1,2,3,3,4,5,5,5,5??? 1,2,3,3,4,5,5,5,5,5???