complex dynamics and algorithms