XOR of 2 Sets: A and B - Get the Answer

  • Thread starter Thread starter abcit
  • Start date Start date
  • Tags Tags
    Sets
abcit
Messages
6
Reaction score
0
XOR of 2 sets ?

i have two sets :
A{a,b,c,d,e,f,l}
B{a,b,i,k,l}
A XOR B result?
Help me please.
Thanks
 
Mathematics news on Phys.org
Who's asking you to take XOR of sets? Can I shout at them please?

I think you want symmetric difference:

x \in A\triangle B iff x is in exactly one of A or B.

Equivlently it is (A^c\cap B)\cup(A\cap B^c)

assuming you're ok with taking complements.
 
Last edited:
I get this problem in Matching algorithm,
 

Attachments

  • a.jpg
    a.jpg
    2.9 KB · Views: 599
Last edited by a moderator:
A XOR B = (A OR B) - (A AND B)
 
Stop using logical symbols such as AND, OR etc when you mean set symbols such as intersction etc!

OR is not the same as union, despite the similarities in their behaviour.

And if you want us to know what's going on then you need to tell us.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 19 ·
Replies
19
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K