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: 587
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.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
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...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top