English Edition | Deutsche Ausgabe

Home Software Companies Jobs Community Members   
 

C++ sets class 1.0

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.

Add this page to your favorites

  Detail  

  Images  

  Download  

  Reviews  

  Contact  

    


Details:

Date:

15.01.2001

License:

Freeware

Price:

USD 0.00

Size:

.014 MB

Downloads:

9


C/C++ sets class

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.




Supported Languages:

English

Operating Systems:

Windows 95

System Requirements:

C/C++ compiler

Special Limitations:

-

Screenshot:





Company:

Abecedarical Systems
962 Depot Road
none
01719 Boxborough
USA

More Information:

The following links may provide you further information:

Download
Company Website
Product Website



Related Products for C++ sets class 1.0:

UserMonitor for Classroom or Computer Lab
UserMonitor assists teachers, instructors or administrators. You can broadcast your screen to other screens, see screens...

CyberMatrix Class Scheduler
CyberMatrix Class Scheduler is an easy to use single or multi-user application for scheduling student`s classes. The sof...

Book Reporter
Book Reporter educational software is designed to be used in the classroom to teach students computer skills, keyboardin...

Virtual Class
Virtual Class lets you create a virtual classroom across a local area network. Teachers can broadcast their desktops to ...

Silicon Slate Software
Silicon Slate Software is like having a remote control for your computer class or lab. With Silicon Slate Software you c...

Student Life
Simplify the chaos of college life with this cool student organizer. Track and organize everything from your homework, t...



spacer
Members
Login:
Your Email:

Your Password:

Auto-Login

Community
Discuss this product with other members...
News Alert
You always want the latest version? Create a News Alert for C++ sets class
Actions:
Do you like this page?
spacer

spacer
spacer spacer spacer
spacer