the combination of all elements of either set into the new combined set.
Chat with our AI personalities
A = { 0 } B = { 0, 1 } Or, in fact, any set would would, as long as A = B. Or A = an empty set.
Yes, because the side a and side c are always equal in length and side b and side d are always equal in length.
The answer depends on whether you mean A intersecting (B union C) or (A intersecting B) union C.
a = b changes the value of a and makes it the same as the value of b. a == b does not change the values of a or b. It is an expression that is equal to 1 if a and b are the same or to 0 if a and b are different. For example: if ( a == b) { c = d;} means if a and b are the same, then set c equal to d. C does let you write the following: if ( a = b) { c = d;} This sets a equal to the value of b, and then if the new value of a is non-zero, it sets c equal to d. You can do this, but if you see a single equal sign in an "if" condition, that usually (but not always) is a mistake.
The set A union B can be decomposed into three disjoint sub sets A\ (A int B), B\(A int B), and (A int B). So in this case (A union B) and (A int B) are fixed but "moving" elelments from A\ (A int B) into B\(A int B) will not affect (A union B) and (A int B). You should be able to fill in the details now.