tag to algorithm