Instead of operating on single characters, FSMs will sometimes treat longer strings as a single token. This is often used when modelling control systems.
The machine below is a simplified representation of a self-service checkout.
Select the state that the machine would be in after the input: start, scan_item, bag_item, scan_item, bag_item.
The machine below is a simplified representation of a self-service checkout.
Select the state that the machine would be in after the input: start, scan_item, bag_item, scan_item, bag_item.