MRC-CSO-SPHSU / UKSEABMLib.jl

MIT License
1 stars 1 forks source link

do marriages algorithm is computationally excessive #41

Open AtiyahElsheikh opened 1 year ago

AtiyahElsheikh commented 1 year ago

The marriage algorithm appears to be computational expensive.

  1. the set of all mens subject to marriages are pre-computed
  2. if a certain probability is satisfied, the set of all eligible women in the whole population are considered as candidates
  3. weights are assigned to all eligible women
  4. a random woman is chosen according to the weight

It looks like this algorithm can be simplified with similar outputs