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. C++ sets class is licensed as freeware, full size of the download is .014 MB. You can download a free version of C++ sets class by following download link at Free Downloads section of this page. C++ sets class is developed or distributed by Abecedarical Systems and is listed under development tools.

Software Screen Shot

The sets class can be used to perform set operations in your programs.

Related Software

c operator overloading intersection operator array size max words complement of set difference operator intersection of two sets word size union operator class declaration universal set integers parameters definitions elements

Free Software Download

 Download Link: Download Now!
 Publisher: Abecedarical Systems
 Cost: Freeware
 License Type: Freeware
 File Size: .014 MB
 Release Date: 1/15/2001
 Platforms: Win95
 Keywords: sets c/c++ class
 

Review and Awards

 

Put it on your website!

 

C++ sets class Software Downloads

Chromentum - An original 3D ball rolling puzzle game. Sokoban crossed with Pool.
Chilkat SMTP / POP3 ActiveX Email Component - ActiveX SMTP / POP3 Email Component with S/MIME for signed and encrypted mail
Most Popular Solitaire - Play 30 of the most popular solitaire games including FreeCell and Spider
Advanced RM To MP3 Converter - Advanced RM To MP3 Converter is an easy to use and powerful software.
SafariButtons - New Tab button and key combo to remove images for faster page loading in Safari.
HS POP3 Lite - HS POP3 Lite 1.0 C Source Library (Post Office Protocol Vestion 3 - RFC1939)
LivehelpGenie - Help support live solution for your business
LastBit Act! Password Recovery - Password recovery tool for Act! (supports all versions through Act! 2008).
ShutdownTray - ShutdownTray allows easy access to your system's power settings. Free.
Image to Icon - Create icons from your favorite image files.
GFI EndPointSecurity - Network-wide control of portable devices such as USB drives, iPods & PDAs
DocFlex/Javadoc - A multi-format Javadoc doclet and a rapid doclet development tool
Game Show Wizard - Game show software for classroom quizzing and test reviewing
1 Registry Cleaner - 1 Registry Cleaner is a system optimization and registry cleaning software
StatusBar ActiveX control - A StatusBar control displays various kinds of status data.
Brava! Reader - Brava! Reader is a free application that views & prints TIFF, PDF & CSF
MoneyKeeper 2005 - Home Edition - Do you want to track all of your income and expenses?
CyberMatrix Employee Scheduler - Employee Scheduler is an easy to use application for creating employee schedules
2M Free Solitaires - A free collection of 25 solitaire card games. More than 50 variations.
Acoobee Flash Album Builder - Make your flash album show on Website, Blog, MySpace and more.
Page URL:
HTML Link:

Copyright © 2006 - 2012 LastDownload Software