private static void subset_xor_test() //****************************************************************************80 // // Purpose: // // SUBSET_XOR_TEST tests SUBSET_XOR. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 09 January 2016 // // Author: // // John Burkardt // { Console.WriteLine(""); Console.WriteLine("SUBSET_XOR_TEST"); Console.WriteLine(" SUBSET_XOR returns the exclusive OR of two subsets."); Console.WriteLine(""); const int n = 7; int seed = 123456789; int[] s1 = Subset.subset_random(n, ref seed); typeMethods.i4vec_transpose_print(n, s1, " Subset S1:"); int[] s2 = Subset.subset_random(n, ref seed); typeMethods.i4vec_transpose_print(n, s2, " Subset S2:"); int[] s3 = Subset.subset_xor(n, s1, s2); typeMethods.i4vec_transpose_print(n, s3, " XOR: "); }