Hi All, I am having a weird mind gogling problem. Sorry in advance, If I confuse you.
I have following data
1 3 5
5 1 2
2 4 8
3 2 9
3 8 4
first column = source 1
second column = source 2
third column = result column
First and second column will can create 3rd column and that 3rd column can be used in 1st or 2nd column to make a new 3rd column value. You can see in first row 5 was 3rd column and in 2nd row it was input to make 2 (3rd column)
I am looking for a solutin that if it pass 3 it return me (1,4,5) rows and same for other digits. Solution tip can be either in java or php because I just want to get data from a old project to make it work !
Thanks !
EDIT
You all guys are all great ! ! ! Thanks for reading my question and I am extremely sorry for confusion.
I am making hierarchical clustering stuff to cluster some old data. I used a java class that generated this output. column1 & column2 are source and column3 is result. In hierarchical clustering you merg data and it create another new node and you keep doing it till it return just one root node.
If any body know a good hierarchical cluster in java or php just let me knkow. I know some packages but I don't like BIG APIs