Mathematics, Math, Programming, Discrete Mathematics.
give us a pair of coordinates on a graph. So when we take the cartesian product, we are essentially finding all the coordinates that contain both “a” and “b” members from two respective sets. So when you take the cartesian product of something, you are trying to find all the possible ordered pairs