Answer the question
In order to leave comments, you need to log in
How to get which pairs were connected from a ready-made weighted union?
A weighted pooling algorithm is used.
Initially, an array is created - 10 elements. The contents of the array are initially equal to the indices.
The task is as follows: arrays are given, for example: (9 7 8 8 8 9 8 7 9 7 , 1 1 0 3 9 4 0 4 1 0, etc.). Whether also it is necessary to learn the weighed association was applied. But in order for me to find out, I need to understand which pairs I need to connect, but I can’t figure out how to do this.
Before that, there were assignments: initially 10 array elements, which are equal to indices (0, 1, 2 ...). And pairs were given that needed to be connected (4-5, 6-7, etc.) - and it was necessary to give the resulting array after all these unions. - Here is a clear rear. But how to make revers - I don’t get it.
Thanks everyone for the replies.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question