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.

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.
Requirements:
C/C++ compiler
Operating system:
Windows 8, Windows 7, Windows Vista, Windows XP, Windows 2000, Windows 98
Release notes:
New Release

Program specification:

SPONSORED LINKS

    Technical details:

  • Version: 1.0
  • File size: 14 KB
  • File name: SETSCL10.zip
  • Last update:
  • Platform: Windows 8, Windows 7, Windows Vista, Windows XP, Windows 2000, Windows 98
  • Language: English
  • License: Freeware
  • Company: Abecedarical Systems (View more)

Related Programs:

Appin Homtech course on Ethical Hacking& Network Security

Appin Homtech course on Ethical Hacking& Network Security 3.1

Learn to hack ethically
Price: $0, Rating: 9.39, Downloads: 396 Download
csFileDownload

csFileDownload 3.0

This ASP component enables file downloads to be controlled from within a script. It allows for password protection of individual files, and for record keeping. A built in access code generator is included. There are also some file utility functions.
Price: $35, Rating: 1, Downloads: 289 Download
TreeBase Generator

TreeBase Generator 1.0

With TreeBase Generator you will receive a MS Windows based application. It was tested on Win 98, ME and 2000. TreeBase Generator will create a new database for you and will also generate a complete w
Price: $ 79, Rating: 10, Downloads: 237 Download
ParetoLogic Privacy Controls

ParetoLogic Privacy Controls 2.0

Finds and erases confidential information.
Price: $ 29.95, Rating: 9, Downloads: 224 Download
QueryShark

QueryShark 3.0

QueryShark is an easy to use, agent-less tool to collect system information from your network of Windows based computers.
Price: $ 295, Rating: 10, Downloads: 173 Download

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5

Screenshot:

C++ sets class 1.0 screenshot. Click to enlarge!
Screenshots(1)

Awards

C++ sets class 1.0 Clean & Safe award