Esoteric algorithm

An esoteric algorithm is a strange, confusing, or humorous algorithm that deviates from traditional algorithmic concepts in some way. An esoteric algorithm may be overly complicated, have unneeded results, or be just plain bonkers. An esoteric algorithm may be dependent on (accepting, returning, or using intermediately) an esoteric data structure.