C++ sets class version 1.0

TAG: elements, class, difference, operator, symbol, words, complement, binary, union, intersection, example, ,  sets class, elements which, max words, example let, elements which belong,
Best Search Category: pc diagnostics, speed up pc, computer speed, pc booster, registry cleaner window xp, performance optimize, pc performance check, pc utilities, pc performance software, computer diagnostics software, fix pc software, computer diagnostic software, computer diagnostic tools, pc repair software, pc repair softwares
C++ sets class

License / Price:
Freeware / $
Category :
Home & Education / Teaching and Testing
Requirements :
C/C++ compiler
Publisher / Limitations:
Abecedarical Systems / N/A
Size / Last Updated:
.014 MB / 2007-11-19
TAG: elements, class, difference, operator, symbol, words, complement, binary, union, intersection, example, ,
sets class, elements which, max words, example let, elements which belong,
Operating System:
Win95
Download:
Download
Publisher's description - C++ sets class 1.0
Rate
 
 
 
 
 
12 Ratings  
  The sets class can be used to perform set operations in your programs. It represents set elements as bits in a private array of unsigned long integers. The array size is a defined constant which can be changed to suit your application. The sets class supports the following set operations by means of C++ operator overloading: union The union of two sets A, B is the set of all elements which belong to either A or B. In the sets class, the symbol + is the binary union operator: A + B = {x: x is in A -or- x is in B } intersection The intersection of two sets A, B is the set of all elements which belong to both A and B. The symbol * is the binary intersection operator: A * B = {x: x is in A -and- x is in B } example Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then A + B = {1, 2, 3, 4, 5, 6} A * B = {3, 4} complement In set theory, sets are subsets of a fixed universal set U. In the sets class, U is the set of elements numbered from 1 to MAX_WORDS * WORD_SIZE. In the class declaration file below, the following definitions are made: #define MAX_WORDS 2 #define WORD_SIZE ( 8 * sizeof( unsigned long ) ) These parameters make the range of U, 1 to 64 in sets. To increase or decrease the size of U, change the defined value of MAX_WORDS. The complement of set A is the set of elements belonging to U but not belonging to A. The symbol ~ is the unary complement operator: ~A = {x: x is in U, x is not in A } example Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then ~A = {5, 6, 7, . . .} ~B = {1, 2, 7, 8, 9, . . .} difference The difference of two sets A, B is the set of all elements which belong to A less those in B. The symbol - is the binary difference operator: A - B = {x: x is in A, x is not in B} example Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then A - B = {1, 2} It can be shown that A - B = A * ~B. symmetric difference The symmetric difference of two sets A, B is the set of all elements which belong to A or to B, but not both.
 
 

Also see ...


...in Home & Education

1)    Angler's eLOG 2006 Fishing Gear
 Totally free fish logging and tracking software. The goal of the software was to create an easy to use interface combined with a wide variety of features including easy logbook entry, photo gallery, and graphing....

2)    Books Program 2.2
 Quickly catalog your book collection or library. Enter as much or as little as you are interested in tracking. Use key word searching to easily locate any book in your collection....

...in Teaching and Testing

1)    Ten Thumbs Typing Tutor
 De Ten Thumbs Typing Tutor leert je blind te typen (typen met alle vingers zonder naar het toetsenbord te kijken) in een makkelijke stap voor stap wijze. Ten Thumbs is veel onderscheiden omdat het zo gemakkelijk te gebruiken is. Het programma is geschikt voor alle leeftijden, en wordt gebruikt in scholen, thuis en in universiteiten en bedrijven, inclusief call centers en financiele organisaties. Het leert Duits QWERTZ en ook de Engelse toetsenborden. De mogelijkheden van het programma zijn bijvo...

2)    AceReader Pro Deluxe Network
 Speed Reading, Assessment and Online Reader Software. AceReader Pro is 3 tools in one: (1) It is a training tool that will help you become a more proficient reader both online and offline. Learn to Speed Read. (2) It can be used to assess and track your reading level. (3) It can also be used as an online reading tool to help you read more efficiently while online. Utilizes Tachistoscope Technology to pace your reading. Designed for all ages. Assess and Improve your reading skills with Comprehens...

 

 

Related tags:
Advertisement