Configuring flexible algorithms