Self-Adaptive Algorithms in AGI