![A traffic signal cycles from GREEN to YELLOW, YELLOW to RED and RED to GREEN. In each cycle, GREEN is turned on for 70 seconds](https://www.gkseries.com/blog/wp-content/uploads/2023/09/A-traffic-signal-cycles-from-GREEN-to-YELLOW-YELLOW-to-RED-and-RED-to-GREEN.-In-each-cycle-GREEN-is-turned-on-for-70-seconds.jpg)
Q. A traffic signal cycles from GREEN to YELLOW, YELLOW to RED and RED to GREEN. In each cycle, GREEN is turned on for 70 seconds, YELLOW is turned on for 5 seconds and the RED is turned on for 75 seconds. This traffic light has to be implemented using a finite state machine (FSM). The only input to this FSM is a clock of 5 second period. The minimum number of flip-flops required to implement this FSM is .
Ans: 5
![](https://www.gkseries.com/blog/wp-content/uploads/2023/09/Screenshot-971.png)