Algorithm selection for processor-controlled device