Skip to main content
. 2016 Jun 28;4:e2172. doi: 10.7717/peerj.2172

Algorithm 3. Function for randomization step of the GSCM.

1: function pickRandomTreePair (trees S⊆T1,T2,…,Tk)
2: Randomly pick a pair of trees Ti,Tj⊆S with probability
PTi,Tj=scoreTi,Tj ∑Ta,Tb∈S,a≠bscoreTa,Tb,i≠j
3: return Ti, Tj
4: end function