Optimized allocation algorithms