|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 plz. Thanks |
|
#2
|
||||
|
||||
|
XOR means exclusive OR, which means one or the other, but not both
I'm assuming that A[a] == B[a] so in another example (you can work out your own) C = {d,f,g,h,i} D = {f,g,h,y} C XOR D == {d,i,y} As an aside; people don't generally like doing other people's homework questions... Next time at least have a go and show your attempt before asking. Last edited by whitelines : March 12th, 2004 at 06:29 AM. Reason: Changed the values to an example rather then the solution |
|
#3
|
|||
|
|||
|
hic, it's not my homework, i ask my friends but no one remember XOR of 2 sets, so i post here.
A XOR B = (A OR B) - (A AND B). |
|
#4
|
||||
|
||||
|
my bad...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Software Design > XOR of 2 sets ???? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|