C++ sets class 1.0

C++ sets class 1.0 Screenshot You can use the sets class to perform set operations in your programs.

Developer:   Abecedarical Systems
      software by Abecedarical Systems →
Price:  0.00
License:   Freeware
File size:   0K
Language:   
OS:   Windows Vista (?)
Rating:   0 /5 (0 votes)

You can use the sets class 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.

Requirements

tags the set  all elements  the sets  which belong  the symbol  elements which  sets class  two sets  max words  example let  the binary  difference the  symmetric difference  

C++ sets class 1.0 screenshot


Download C++ sets class 1.0

 Download C++ sets class 1.0


Authors software

Numerical Plotter 1.0 Numerical Plotter 1.0
Abecedarical Systems

This source code will enable you to plot the solutions to scientific and engineering problems.

Simulated Annealing Demonstration 1.0 Simulated Annealing Demonstration 1.0
Abecedarical Systems

This is a Java application that will demonstrate the Simulated Annealing algorithm with an attack on the "traveling salesman" problem.

C++ sets class 1.0 C++ sets class 1.0
Abecedarical Systems

You can use the sets class to perform set operations in your programs.

Xref 1.0 Xref 1.0
Abecedarical Systems

Xref is a utility application which creates a file containing the locations of identifiers used in your C and C++ programs.

Similar software

C++ sets class 1.0 C++ sets class 1.0
Abecedarical Systems

You can use the sets class to perform set operations in your programs.

Google Sets Script 1.0 Google Sets Script 1.0
Sooksoft

The google sets script from Sooksoft is ColdFusion-based and utilizes Google's BETA tool called Google Sets.

UploadrXL 0.9.0.38638 UploadrXL 0.9.0.38638
Rutger Smit

UploadrXL is an application which you can use for uploading one or more pictures to Flickr and add them immediately to your Sets of Groups.

BackZip 0.5.3 BackZip 0.5.3
Jerry Fath

BackZip is a file backup software that stores backup sets in standard ZIP format.

Matrix Plugin 1.1 Matrix Plugin 1.1
Bob Delaney

Matrix Plugin for REALbasic 5 allows you to construct programs which, because of operator and function overloading, can handle real matrices much like doubles and integers are handled.

MonoFill 1.2 MonoFill 1.2
S.W. Upham

MonoFill is a collection of greyscale computer-generated seamless tiles that you can use as texture fills in a wide variety of your projects.

RadioCollection 1.6 RadioCollection 1.6
Alain Lecomte

RadioCollection is mainly designed to be a software that will manage a collection of antique radio sets.

JPasswordGenerator 1.0 JPasswordGenerator 1.0
Reiner Prols

JPasswordGenerator is a platform independent (Java program) for creating safe and strong passwords from predefined character sets in a random way.

BirthdayParadox 3.1 BirthdayParadox 3.1
Ion Saliu

BirthdayParadox application is based on the popular probability problem known as the 'Birthday Paradox'.

Periodic Table 2.41 Periodic Table 2.41
Srihari Kulkarni

Periodic Table is a software that helps you at chimistry Get vast information regarding all the elements of the modern Periodic Table.

Other software in this category

File Analyzer 1.6 12.10.2002 File Analyzer 1.6 12.10.2002
Vadim Tarasov

File Analyzer is a software application that can identify the format of a file, with what it was compiled, encrypted, packed, etc.

Snap 1.1 Snap 1.1
Fritz

This program is a multiplatform (9x,ME,NT4) Task/Window manager and MORE.

FileType v1.26 FileType v1.26
X-Fixer

FileType is intended to give the "first-look" file type information without any futher details.

CodeSnip 1.0 CodeSnip 1.0
Dacris Software

CodeSnip helps you to increase your daily coding efficiency.

ExamDiff 1.6m ExamDiff 1.6m
PrestoSoft

ExamDiff is a useful utility for visual file comparison.