Title: Automatic Algorithm Recognition and Replacement