in reply to Re: compare columns in all possible combination
in thread compare columns in all possible combination

Hello! sorry for late reply.

Algorithm include following steps:

1. accessing each line of file 2

2.and parsing these elements to while loop(so on accessing the respective columns)

3.comparing those columns in for loop

  • Comment on Re^2: compare columns in all possible combination

Replies are listed 'Best First'.
Re^3: compare columns in all possible combination
by Lennotoecom (Pilgrim) on Sep 21, 2014 at 15:09 UTC
    No, I meant
    how does every line like 1 2 3 4
    relate to the file1 ?
    We take only 1 2 3 4 columns from file1?
    A B C D? what is the logic we're trying to achieve at the end?
    To summarize the column's pluses and zeroes in different arrays?
    Maybe it is an XY problem we're facing here.
    At this point I got this:
    we take the first line 1 2 3 4, decrement every element,
    then in a loop we push 4 elements into different four arrays according to these values.
    At the end we're getting four arrays that look like this:
    A0+000+0A0+000+0A0+000+0A0+000+0A0+000+0.
    So what's the end goal?

      lines in file 2 contains all possible combinations of columns in file 1.

      By this way I am trying to calculate the no. of rows of any three or four columns are equal with each other.

        Please have a look at my first reply,
        is this right? I updated it.