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


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.

Powerful PHP DataGrid 1.1.2 Powerful PHP DataGrid 1.1.2
Rashad

PHP DataGrid was created for selecting data, displaying it as a grid, and to perform routine operations on it.

Extended Stored Procedure class for VC++ 1.0 Extended Stored Procedure class for VC++ 1.0
Leonid Belousov

Extended Stored Procedure class for VC++ is a function packaged as DLL, developed by using C/C++ or Delphi (or any other compiler which supports export of functions).

Shade LSB 1.0.0 Shade LSB 1.0.0
Brandon Captain

Shade is an acronym which stands for Steganographically Hide and Analyze Data Entries.

FractionCalc 1.3.3 FractionCalc 1.3.3
Travis East

FractionCalc will perform standard operations on fractions, improper fractions, or mixed numbers.

Private Desktop 2.0 Private Desktop 2.0
Tropical Software

Say you're at your computer doing something private and someone comes in.

Hpmbcalc Hex Calculator 4.22 Hpmbcalc Hex Calculator 4.22
Hexprobe System

Hpmbcalc Hex Calculator is a hex calculator that will solve in an accurate and precise way many operations.

AXARScan 4.1 r1 AXARScan 4.1 r1
AXAR Team

AXARScan application represents hexadecimal text editor.

MSCCrypto 2.0 MSCCrypto 2.0
Miraplacid

MSCCrypto is COM component for Active Server Pages and stand-alone applications.

BITS Download Manager 1.2 BITS Download Manager 1.2
Language.Nu

BITS is an application that enables you to download large files in the background.