# Basics of Sets and Relations #4

# Basics of Sets and Relations #4

divya_gracie + 0 comments A x B means: The set of all ordered pairs , where a is an element of A and b is an element of B, is called the Cartesian product of A and B.

Example, Here set A contains 6 elements and B contains 7 elements => AxB= 6x7 => 42.

srtvivian + 0 comments A = {1,2,3,4,5,6} B = {2,3,4,5,6,7,8}

1 = (1,2);(1,3);(1,4);(1,5); (1,6);(1,7); (1,8)

2 = (2,2);(2,3);(2,4);(2,5); (2,6);(2,7); (2,8)

3 = (3,2);(3,3);(3,4);(3,5); (3,6);(3,7); (3,8)

4 = (4,2);(4,3);(4,4);(4,5); (4,6);(4,7); (4,8)

5 = (5,2);(5,3);(5,4);(5,5); (5,6);(5,7); (5,8)

6 = (6,2);(6,3);(6,4);(6,5); (6,6);(6,7); (6,8)

Each "line" have 7 "( )". Set A have 6 numbers. Then 6x7 = 42.

hhhabib95 + 0 comments A*B means the multiplication of set A elements and Set B elements. Here in this case set A contains 6 and B contains 7, So, Answer should be (6*7)=42.

neha22773 + 0 comments It just works for custom input if i click on submit button then it shows test case failed why?

Koencommandeur + 0 comments Personally I have found this youtube explanation very clear and helpful, if you would need some more explanation:

https://www.youtube.com/watch?v=NnEkVooAsxk

(Discrete math, cartesian product and ordered pairs)

Sort 14 Discussions, By:

Please Login in order to post a comment