Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 12th, 2004, 05:22 AM
abcit abcit is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 abcit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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 plz.
Thanks

Reply With Quote
  #2  
Old March 12th, 2004, 06:26 AM
whitelines's Avatar
whitelines whitelines is offline
action=(isSleep())?sleep:code;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Sydney->Indiana
Posts: 182 whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 8 m 29 sec
Reputation Power: 10
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.
__________________
/*
* www.benjaminranck.com
* bjamins.blogspot.com
*/

Last edited by whitelines : March 12th, 2004 at 06:29 AM. Reason: Changed the values to an example rather then the solution

Reply With Quote
  #3  
Old March 12th, 2004, 06:46 AM
abcit abcit is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 abcit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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).

Reply With Quote
  #4  
Old March 12th, 2004, 07:53 AM
whitelines's Avatar
whitelines whitelines is offline
action=(isSleep())?sleep:code;
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Sydney->Indiana
Posts: 182 whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level)whitelines User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 15 h 8 m 29 sec
Reputation Power: 10
my bad...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > XOR of 2 sets ????


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT