Whitehead's algorithm is a mathematical algorithm in group theory for solving the automorphic equivalence problem in the finite rank free group Fn. The algorithm is based on a classic 1936 paper of J. H. C. Whitehead.[1] It is still unknown (except for the case n = 2) if Whitehead's algorithm has polynomial time complexity.