Please Bookmark this website for Future Reference, it can save lots of money and time for you! - Bookmark this website
C++ sets class 1.0
Author: Abecedarical Systems Rate:
File Size: 10KB Update Time: 2006-3-1 20:54:20
Language: English OS: Win95
Licence:  Freeware Price: Free Discount: 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 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.


Award winning:
Related software:
  1. z/Scope Classic 6
    z/Scope Classic is Cybele Software's fully featured PC-to-Host Terminal Emulation for accessing to AS/400, IBM Mainframes and UNIX hosts. It can be run on Windows 98/ME/NT/2K/XP/Vista platforms, and supports TN3270E, TN5250E and VT100/420 protocols.
  2. StudioLine Photo Classic 3.12
    StudioLine Photo is a powerful and easy-to-use management and editing software for digital photos. Images can be imported from camera, scanner and all popular file formats. The image archive is the central database where you conveniently categorize your images and add keywords and descriptions.
  3. MagicScore Classic 5 5
    MagicScore is a magnificent, powerful and convenient musical editor, for those who professionally are engaged in music, seriously studies it or simply loves music and self-expression.
  4. MagicScore Classic 4
    MagicScore is a magnificent, powerful and convenient musical editor, for those who professionally are engaged in music, seriously studies it or simply loves music and self-expression.
  5. Classroom Spy Professional 2.2
    The Classroom Spy allows you to see live screens of remote computers or show you screen to students. You can take control of a remote computer by controlling the mouse and keyboard. This way, you can always watch what users are doing on the remote computer.
  6. MorphVOX Classic Voice Changer 2
    MorphVOX is voice changing software for online games. It will change your voice to match your personality. You can sound like a spryly wood nymph, a bad tempered dwarf or a Sith Lord.
  7. Classical N-Puzzle 2
    This game is classical n-puzzle game. You can play this game with boards ranging from 2x2 up to 6x6 sizes. Board style can either be numbers, image or both. A search engine is also available for finding different solutions to the puzzle.
  8. Radix SmartClass 4
    Demonstration - Broadcast the screen of the teacher - Broadcast high quality video presentation - Broadcast presentation of a student - Broadcast recorded lessons - Broadcast on-screen free painting and marking - Create students groups for independent teamwork - Free communication via class au.
  9. PDF Maker Class .NET 3
    PDF Maker Class .NET is a powerful .NET component for software developers to programmatically create PDF files from practically any type of file - Excel workbooks, Word documents, Powerpoint files, Access reports, Crystal Reports, AutoCAD drawings, Publisher files, image files, text files, etc.
  10. MLP-Class 1
    Source code for fast training of multilayer perceptron classifier. Example training and validation data files included. Source code for applying the trained network. Resulting networks can be pruned by NuClass7.06. The training algorithm can be modified to be substantially better than BP.
Hot searched keywords: dvd to mp4, dvd ripper
Submit Software About Privacy Contact Links

Discount-softwares.com 2006-2008. All rights reserved.