Run two DFAs at once: the product construction pairs up their states to build one DFA for the union, intersection or difference.
This interactive visualization needs JavaScript.