I'd make this `algorithm_dict` or mapping or something.