Cartesian Product

Executable:

ProdCart.exe

 

Purpose:

Generate all possible combinations of the values of variables as defined in the input file

 

Input:

  1. –i: {INPUT FILE NAME}    Input file in which each line has all the variables values separated by(SEP)
  2. –s: (SEP):                      Separator of the values of the variables. The default is ";" (semicolon).
  3. (-c)                                Output comments during generation of tuples.

 

Output:
A file with all the possible combinations of input variables. The output is printed on the screen and can be redirected to a file with the usual operations "pipe" DOS (> or >>)

The program ProdCart is generally much faster than the previous ones, but in the case where the system memory is not sufficient (ie, when the number of combinations is very high), exits with a managed memory overflow.

 

Example:

 

ProdCart –i: input.txt

 

The command outputs all the possible combinations of variables. If, for example, the file input.txt is as following:


A1;A2;A3;A4
B1;B2;B3    
C1;C2

 

The output including all combinations will be:

 

A1;B1;C1
A1;B1;C2
A1;B2;C1
A1;B2;C2
A1;B3;C1
A1;B3;C2
A2;B1;C1
A2;B1;C2
A2;B2;C1
A2;B2;C2
A2;B3;C1
A2;B3;C2
A3;B1;C1
A3;B1;C2
A3;B2;C1
A3;B2;C2
A3;B3;C1
A3;B3;C2
A4;B1;C1
A4;B1;C2
A4;B2;C1
A4;B2;C2
A4;B3;C1
A4;B3;C2

 

ie, all combinations of the values of all the three variables A, B and C, one for each line of the input file. Note that the lines in the input file ProdCart are not labeled as in the case of the input file of the batch tool runW. In that case the input file would have to report to the head of each line the variable name (composed of a single letter) followed by ":", ie:


A:A1;A2;A3;A4
B:B1;B2;B3    
C:C1;C2

 

But this file format is not correct for the executable ProdCart.

Web Traffic

Today4
Yesterday34
This week35822
This month579
Total35822

Who Is Online

1
Online

Saturday, 16 December 2017 01:17
Powered by CoalaWeb