answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Show that a xor b a union b - a intersect b?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

Prove if a union c equals b union c and a intersect c equals b intersect c then a equals b?

suppose x is in B. there are two cases you have to consider. 1. x is in A. 2. x is not in A Case 1: x is in A. x is also in B. then x is in A intersection B. Since A intersection B = A intersection C, then this means x is in A intersection C. this implies that x is in C. Case 2: x is not in A. then x is in B. We know that x is in A union B. Since A union B = A union C, this means that x is in A or x is in C. since x is not in A, it follows that x is in C. We have shown that B is a subset of C. To show that C is subset of B, we do the same as above.


Show that A union B is not a convex set?

In some cases, A union B is convex, but in general this may not be true. Consider two sets A, B (subsets of Rn) such that A intersect B is the null set. Now choose a point x in A, and y in B. If a set is to be convex, then all points on the line tx + (1-t)y (0


The quantity of A intersect at B intersect at C is equal to C intersect at the quantity of A intersect at B?

all major intersection have various other signs offering information to road users


Give an example to show that if A union B and A intersection B be given then A and B may not be uniquely determined?

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.


How From the truth table of an X-OR gate write the X-OR equivalent equation by using NOT OR and AND gate?

a XOR bis equivalent to: (a AND NOT b) OR (b AND NOT a)

Related questions

What is XOR in a c program?

a XOR b is a^b in C language


How do you find the venn diagram for union of three sets?

Draw your Venn Diagram as three overlapping circles. Each circle is a set. The union of the sets is what's contained within all 3 circles, making sure not to count the overlapping portion twice. An easier problem is when you have 2 sets, lets say A and B. In a Venn Diagram that looks like 2 overlapping circles. A union B = A + B - (A intersect B) A intersect B is the region that both circles have in common. You subtract that because it has already been included when you added circle A, so you don't want to add that Again with circle B, thus you subtract after adding B. With three sets, A, B, C A union B union C = A + B - (A intersect B) + C - (A intersect C) - (B intersect C) + (A intersect B intersect C) You have to add the middle region (A intersect B intersect C) back because when you subtract A intersect C and B intersect C you are actually subtracting the very middle region Twice, and that's not accurate. This would be easier to explain if we could actually draw circles.


How can you devise a way to interchange two variables A and B without using a third variable or register using Exclusive OR?

A = A xor B B = A xor B A = A xor B in C... A^=B; B^=A; A^=B;


How do you swap two variables using bitwise operators?

a := a XOR b b := a XOR b a := a XOR b it works, but never use it in real programs do you know why its not used in real program??


Prove if a union c equals b union c and a intersect c equals b intersect c then a equals b?

suppose x is in B. there are two cases you have to consider. 1. x is in A. 2. x is not in A Case 1: x is in A. x is also in B. then x is in A intersection B. Since A intersection B = A intersection C, then this means x is in A intersection C. this implies that x is in C. Case 2: x is not in A. then x is in B. We know that x is in A union B. Since A union B = A union C, this means that x is in A or x is in C. since x is not in A, it follows that x is in C. We have shown that B is a subset of C. To show that C is subset of B, we do the same as above.


What is the Concept of swapping with only two variable?

Non-using of temporal variable. It is possible, but has no use in real programming. Eg. a := a XOR b b := a XOR b a := a XOR b I warn you again: this is just a curiosity, not something you really use.


Show that A union B is not a convex set?

In some cases, A union B is convex, but in general this may not be true. Consider two sets A, B (subsets of Rn) such that A intersect B is the null set. Now choose a point x in A, and y in B. If a set is to be convex, then all points on the line tx + (1-t)y (0


How do you write the Boolean expression for XOR gate?

For 2-input EX-OR gate, if one input is A, the other input is B, and the output is Y. Then the Boolean expression for EX-OR (XOR) function (gate) is Y=A⊕B The output Y is true if either input A or if input B is true, but not both.Y= ( (A and NOT B) or (NOT A and B) ) ;


Prove that A intersect with B is the subset of A?

Let x be in A intersect B. Then x is in A and x is in B. Then x is in A.


Swap of two numbers with xor?

void swap (int *a, int *b) { *a ^= *b; *b ^= *a; *a ^= *b; return; }


The quantity of A intersect at B intersect at C is equal to C intersect at the quantity of A intersect at B?

all major intersection have various other signs offering information to road users


How do you swap two numbers with bitwise operator in c plus plus?

// Note: ^ is the XOR operator a = a ^ b b = b ^ a a = a ^ b