The Sachertorte Algorithm