Algorithm 3. Function for randomization step of the GSCM.
| 1: | function pickRandomTreePair (trees ) |
| 2: | Randomly pick a pair of trees with probability |
| 3: | return Ti, Tj |
| 4: | end function |
| 1: | function pickRandomTreePair (trees ) |
| 2: | Randomly pick a pair of trees with probability |
| 3: | return Ti, Tj |
| 4: | end function |