# 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.

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)

shahnawaz_jrw + 0 comments Correct answer is 42.

coder_aky + 0 comments # :-)

`42`

dhirajsingh194 + 0 comments A has 6 elements B has 7 elements so A*b=42

sonergonul + 0 comments I found Wikipedia explanation of ordered pair ( https://en.wikipedia.org/wiki/Ordered_pair) is really hard to implement this question.

In mathematics, an ordered pair (a, b) is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair

`(a, b)`

is different from the ordered pair`(b, a)`

unless`a = b`

.

tonycmooz + 0 comments Cartesian Product = (Set A # of items) x (Set B # of items)

In this case, the answer is 6 x 7 = 42 ordered pairs

eshan_surathkal + 1 comment Multiply the number of elements in each sets i.e. |A|=6 , |B|=7 and |A|X|B| = 42

dveer123 + 0 comments But the given is condition of ordered pairs????

Sort 13 Discussions, By:

Please Login in order to post a comment