set_theory


set_theory, a MATLAB code which demonstrates how set theory operations including union, intersection, complement, and symmetric difference.

We assume that a set is represented by a strictly ascending sequence of positive integers. We might think of a universal set U = 1 : N in cases where all our subsets will have elements between 1 and N.

Set theoretic operations include

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

set_theory is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

set_theory_test

combo, a MATLAB code which handles combinatorial problems, by Kreher and Stinson;

subset, a MATLAB code which ranks, unranks, and generates random subsets, combinations, permutations, and so on;

Reference:

  1. Charles Pinter,
    Set Theory,
    Addison-Wesley, 1971,
    LC: QA248.P55.

Source Code:


Last revised on 12 March 2019.