Suppose I have a group of organic compounds say A, B, C, D, E, F, G, H. I know their chemical formula and their names. Now there exists a reaction among these compounds but we do not know which compounds would react to give which products. It may be that A and B react to give C and D or B and D react to give F and H. If we are given these compounds, is it possible to identify a reaction that will occur among any number of these compounds to give the product which would belong to this set of compounds?
Note: If you have not understood any part of this question, please ask me before down-voting, I will edit the question and try to re-explain. Thank you. ALso I am a computer science student, so I dont have too deep knowledge in chemistry, so do help me.