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

  • Thread starter Thread starter abcit
  • Start date Start date
  • Tags Tags
    Sets
AI Thread Summary
The discussion centers on finding the XOR (symmetric difference) of two sets, A and B. The symmetric difference is defined as the elements that are in either set A or set B, but not in both. The correct formula for this operation is A XOR B = (A ∪ B) - (A ∩ B). Participants emphasize the importance of using precise terminology, distinguishing between logical operations and set operations. Clarity in communication is essential for effective problem-solving in set theory.
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: 584
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.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top