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.
Statement of the problem
Let F_n=F(x_1,\dots, x_n) be a free group of rank n\ge 2 with a free basis X=\{x_1,\dots, x_n\}. The automorphism problem, or the automorphic equivalence problem for F_n asks, given two freely reduced words w, w'\in F_n whether there exists an automorphism \varphi\in \operatorname{Aut}(F_n) such that \varphi(w)=w'.
Thus the automorphism problem asks, for w, w'\in F_n whether \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w'.
For w, w'\in F_n one has \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w' if and only if \operatorname{Out}(F_n)[w]=\operatorname{Out}(F_n)[w'], where [w], [w'] are conjugacy classes in F_n of w, w' accordingly. Therefore, the automorphism problem for F_n is often formulated in terms of \operatorname{Out}(F_n)-equivalence of conjugacy classes of elements of F_n.
For an element w\in F_n, |w|_X denotes the freely reduced length of w with respect to X, and \|w\|_X denotes the cyclically reduced length of w with respect to X. For the automorphism problem, the length of an input w is measured as |w|_X or as \|w\|_X, depending on whether one views w as an element of F_n or as defining the corresponding conjugacy class [w] in F_n.
History
The automorphism problem for F_n was algorithmically solved by J. H. C. Whitehead in a classic 1936 paper,[1] and his solution came to be known as Whitehead's algorithm. Whitehead used a topological approach in his paper. Namely, consider the 3-manifold M_n=\#_{i=1}^n \mathbb S^2\times \mathbb S^1, the connected sum of n copies of \mathbb S^2\times \mathbb S^1. Then \pi_1(M_n)\cong F_n, and, moreover, up to a quotient by a finite normal subgroup isomorphic to \mathbb Z_2^n, the mapping class group of M_n is equal to \operatorname{Out}(F_n); see.[2] Different free bases of F_n can be represented by isotopy classes of "sphere systems" in M_n, and the cyclically reduced form of an element w\in F_n, as well as the Whitehead graph of [w], can be "read-off" from how a loop in general position representing [w] intersects the spheres in the system. Whitehead moves can be represented by certain kinds of topological "swapping" moves modifying the sphere system.[3][4][5]
Subsequently, Rapaport,[6] and later, based on her work, Higgins and Lyndon,[7] gave a purely combinatorial and algebraic re-interpretation of Whitehead's work and of Whitehead's algorithm. The exposition of Whitehead's algorithm in the book of Lyndon and Schupp[8] is based on this combinatorial approach. Culler and Vogtmann,[9] in their 1986 paper that introduced the Outer space, gave a hybrid approach to Whitehead's algorithm, presented in combinatorial terms but closely following Whitehead's original ideas.
Whitehead's algorithm
Our exposition regarding Whitehead's algorithm mostly follows Ch.I.4 in the book of Lyndon and Schupp,[8] as well as.[10]
Overview
The automorphism group \operatorname{Aut}(F_n) has a particularly useful finite generating set \mathcal W of Whitehead automorphisms or Whitehead moves. Given w,w'\in F_n the first part of Whitehead's algorithm consists of iteratively applying Whitehead moves to w,w' to take each of them to an "automorphically minimal" form, where the cyclically reduced length strictly decreases at each step. Once we find automorphically these minimal forms u,u' of w,w', we check if \|u\|_X=\|u'\|_X. If \|u\|_X\ne \|u'\|_X then w,w' are not automorphically equivalent in F_n.
If \|u\|_X=\|u'\|_X, we check if there exists a finite chain of Whitehead moves taking u to u' so that the cyclically reduced length remains constant throughout this chain. The elements w,w' are not automorphically equivalent in F_n if and only if such a chain exists.
Whitehead's algorithm also solves the search automorphism problem for F_n. Namely, given w,w'\in F_n, if Whitehead's algorithm concludes that \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w', the algorithm also outputs an automorphism \varphi\in\operatorname{Aut}(F_n) such that \varphi(w)=w'. Such an element \varphi\in\operatorname{Aut}(F_n) is produced as the composition of a chain of Whitehead moves arising from the above procedure and taking w to w'.
Whitehead automorphisms
A Whitehead automorphism, or Whitehead move, of F_n is an automorphism \tau\in \operatorname{Aut}(F_n) of F_n of one of the following two types:
- There is a permutation
\sigma\in S_nof\{1,2,\dots, n\}such that fori=1,\dots, n
\tau(x_i)=x_{\sigma(i)}^{\pm 1}
Such \tau is called a Whitehead automorphism of the first kind.
- There is an element
a\in X^{\pm 1}, called the multiplier, such that for everyx\in X^{\pm 1}
\tau(x)\in \{x, xa, a^{-1}x, a^{-1}xa\}.
Such \tau is called a Whitehead automorphism of the second kind. Since \tau is an automorphism of F_n, it follows that \tau(a)=a in this case.
Often, for a Whitehead automorphism \tau\in\operatorname{Aut}(F_n), the corresponding outer automorphism in \operatorname{Out}(F_n) is also called a Whitehead automorphism or a Whitehead move.
Examples
Let F_4=F(x_1,x_2,x_3,x_4).
Let \tau: F_4\to F_4 be a homomorphism such that
\tau(x_1)=x_2x_1, \quad \tau(x_2)=x_2, \quad\tau(x_3)=x_2x_3x_2^{-1},\quad \tau(x_4)=x_4
Then \tau is actually an automorphism of F_4, and, moreover, \tau is a Whitehead automorphism of the second kind, with the multiplier a=x_2^{-1}.
Let \tau': F_4\to F_4 be a homomorphism such that
\tau'(x_1)=x_1, \quad \tau'(x_2)=x_1^{-1}x_2x_1, \quad\tau'(x_3)=x_1^{-1}x_3x_1,\quad \tau'(x_4)=x_1^{-1}x_4x_1
Then \tau' is actually an inner automorphism of F_4 given by conjugation by x_1, and, moreover, \tau' is a Whitehead automorphism of the second kind, with the multiplier a=x_1.
Automorphically minimal and Whitehead minimal elements
For w\in F_n, the conjugacy class [w] is called automorphically minimal if for every \varphi\in\operatorname{Aut}(F_n) we have \|w\|_X\le \|\varphi(w)\|_X.
Also, a conjugacy class [w] is called Whitehead minimal if for every Whitehead move \tau\in \operatorname{Aut}(F_n) we have \|w\|_X\le \|\tau(w)\|_X.
Thus, by definition, if [w] is automorphically minimal then it is also Whitehead minimal. It turns out that the converse is also true.
Whitehead's "Peak Reduction Lemma"
The following statement is referred to as Whitehead's "Peak Reduction Lemma", see Proposition 4.20 in [8] and Proposition 1.2 in:[10]
Let w\in F_n. Then the following hold:
- If
[w]is not automorphically minimal, then there exists a Whitehead automorphism\tau\in \operatorname{Aut}(F_n)such that\|\tau(w)\|_X< \|w\|_X.
- Suppose that
[w]is automorphically minimal, and that another conjugacy class[w']is also automorphically minimal. Then\operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w'if and only if\|w\|_X=\|w'\|_Xand there exists a finite sequence of Whitehead moves\tau_1,\dots, \tau_k\in\operatorname{Aut}(F_n)such that
\tau_k\cdots \tau_1(w)=w'
and
\|\tau_i\cdots\tau_1(w)\|_X=\|w\|_X \text{ for } i=1,\dots, k.
Part (1) of the Peak Reduction Lemma implies that a conjugacy class [w] is Whitehead minimal if and only if it is automorphically minimal.
The automorphism graph
The automorphism graph \mathcal A of F_n is a graph with the vertex set being the set of conjugacy classes [u] of elements u\in F_n. Two distinct vertices [u], [v] are adjacent in \mathcal A if \|u\|_X=\|v\|_X and there exists a Whitehead automorphism \tau such that [\tau(u)]=[v]. For a vertex [u] of \mathcal A, the connected component of [u] in \mathcal A is denoted \mathcal A[u].
Whitehead graph
For 1\ne w\in F_n with cyclically reduced form u, the Whitehead graph \Gamma_{[w]} is a labelled graph with the vertex set X^{\pm 1}, where for x,y\in X^{\pm 1}, x\ne y there is an edge joining x and y with the label or "weight" n(\{x,y\};[w]) which is equal to the number of distinct occurrences of subwords x^{-1}y, y^{-1}x read cyclically in u. (In some versions of the Whitehead graph one only includes the edges with n(\{x,y\};[w])>0.)
If \tau\in\operatorname{Aut}(F_n) is a Whitehead automorphism, then the length change \|\tau(w)\|_X-\|w\|_X can be expressed as a linear combination, with integer coefficients determined by \tau, of the weights n(\{x,y\};[w]) in the Whitehead graph \Gamma_{[w]}. See Proposition 4.16 in Ch. I of.[8] This fact plays a key role in the proof of Whitehead's peak reduction result.
Whitehead's minimization algorithm
Whitehead's minimization algorithm, given a freely reduced word w\in F_n, finds an automorphically minimal [v] such that \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)v.
This algorithm proceeds as follows. Given w\in F_n, put w_1=w. If w_i is already constructed, check if there exists a Whitehead automorphism \tau\in\operatorname{Aut}(F_n) such that \|\tau(w_i)\|_X<\|w_i\|_X. (This condition can be checked since the set of Whitehead automorphisms of F_n is finite.) If such \tau exists, put w_{i+1}=\tau(w_i) and go to the next step. If no such \tau exists, declare that [w_i] is automorphically minimal, with \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w_i, and terminate the algorithm.
Part (1) of the Peak Reduction Lemma implies that the Whitehead's minimization algorithm terminates with some w_m, where m\le\|w\|_X, and that then [w_m] is indeed automorphically minimal and satisfies \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w_m.
Whitehead's algorithm for the automorphic equivalence problem
Whitehead's algorithm for the automorphic equivalence problem, given w,w'\in F_n decides whether or not \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w'.
The algorithm proceeds as follows. Given w,w'\in F_n, first apply the Whitehead minimization algorithm to each of w,w' to find automorphically minimal [v],[v'] such that \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)v and \operatorname{Aut}(F_n)w'=\operatorname{Aut}(F_n)v'. If \|v\|_X\ne \|v'\|_X, declare that \operatorname{Aut}(F_n)w\ne\operatorname{Aut}(F_n)w' and terminate the algorithm. Suppose now that \|v\|_X=\|v'\|_X=t\ge 0. Then check if there exists a
finite sequence of Whitehead moves \tau_1,\dots, \tau_k\in\operatorname{Aut}(F_n) such that
\tau_k\dots \tau_1(v)=v'
and
\|\tau_i\dots\tau_1(v)\|_X=\|v\|_X=t \text{ for } i=1,\dots, k.
This condition can be checked since the number of cyclically reduced words of length t in F_n is finite. More specifically, using the breadth-first approach, one constructs the connected components \mathcal A[v], \mathcal A[v'] of the automorphism graph and checks if \mathcal A[v]\cap \mathcal A[v']=\varnothing.
If such a sequence exists, declare that \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w', and terminate the algorithm. If no such sequence exists, declare that \operatorname{Aut}(F_n)w\neq\operatorname{Aut}(F_n)w' and terminate the algorithm.
The Peak Reduction Lemma implies that Whitehead's algorithm correctly solves the automorphic equivalence problem in F_n. Moreover, if \operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w', the algorithm actually produces (as a composition of Whitehead moves) an automorphism \varphi\in\operatorname{Aut}(F_n) such that \varphi(w)=w'.
Computational complexity of Whitehead's algorithm
A priori, the worst-case asymptotic time complexity of Whitehead's algorithm may be exponential in terms of the size of an input word. Whether that bound is achieved is unknown.[11] There are several partial results showing stronger bounds on aspects of the algorithm.
- Whitehead's minimization algorithm runs in polynomial time for a fixed rank of free group. If the rank
n\ge 2ofF_nis fixed, then, givenw\in F_n, the Whitehead minimization algorithm always terminates in quadratic timeO(|w|_X^2)and produces an automorphically minimal word in the automorphic orbit ofw.[10] Moreover, even ifnis not considered fixed, (an adaptation of) the Whitehead minimization algorithm on an inputw\in F_nterminates in timeO(|w|_X^2 n^3).[12] - If the rank
n\ge 3ofF_nis fixed, then for an automorphically minimalu\in F_nconstructing the graph\mathcal A[u]takesO\left(\|u\|_X\cdot \#V\mathcal A[u]\right)time and thus requires a priori exponential time in|u|_X. For that reason Whitehead's algorithm for deciding, givenw,w'\in F_n, whether or not\operatorname{Aut}(F_n)w=\operatorname{Aut}(F_n)w', runs in at most exponential time in\max\{|w|_X,|w'|_X\}. - For
n=2, Khan proved that for an automorphically minimalu\in F_2, the graph\mathcal A[u]has at mostO\left(\|u\|_X\right)vertices and hence constructing the graph\mathcal A[u]can be done in quadratic time in|u|_X.[13] Consequently, Whitehead's algorithm for the automorphic equivalence problem inF_2, givenw,w'\in F_2runs in quadratic time in\max\{|w|_X,|w'|_X\}. - For fixed
n\geq 2, Lee proved that for automorphically minimalu\in F_nin which the number of times each generator appears (either with positive or negative exponent) is unique, the size of\mathcal A[u]isO\left(|u|^{n(5n-7)/2}\right), a polynomial with respect to the length ofu.[14] The set of words for which this applies is generic inF_n.[15]
The average-case time complexity of Whitehead's algorithm is also unknown. For a fixed rank of free group, if \mathcal A[u] is bounded by a polynomial, then the average time complexity is linear.[15] Thus it is linear when restricted to F_2.[15]
Applications, generalizations and related results
- Whitehead's algorithm can be adapted to solve, for any fixed
m\ge 1, the automorphic equivalence problem for m-tuples of elects ofF_nand for m-tuples of conjugacy classes inF_n; see Ch.I.4 of [8] and [16] - McCool used Whitehead's algorithm and the peak reduction to prove that for any
w\in F_nthe stabilizer\operatorname{Stab}_{\operatorname{Out}(F_n)}([w])is finitely presentable, and obtained a similar results for\operatorname{Out}(F_n)-stabilizers of m-tuples of conjugacy classes inF_n.[17] McCool also used the peak reduction method to construct of a finite presentation of the group\operatorname{Aut}(F_n)with the set of Whitehead automorphisms as the generating set.[18] He then used this presentation to recover a finite presentation for\operatorname{Aut}(F_n), originally due to Nielsen, with Nielsen automorphisms as generators.[19] - Gersten obtained a variation of Whitehead's algorithm, for deciding, given two finite subsets
S,S'\subseteq F_n, whether the subgroupsH=\langle S\rangle, H'=\langle S'\rangle\le F_nare automorphically equivalent, that is, whether there exists\varphi\in\operatorname{Aut}(F_n)such that\varphi(H)=H'.[20] - Whitehead's algorithm and peak reduction play a key role in the proof by Culler and Vogtmann that the Culler–Vogtmann Outer space is contractible.[9]
- Collins and Zieschang obtained analogs of Whitehead's peak reduction and of Whitehead's algorithm for automorphic equivalence in free products of groups.[21][22]
- Gilbert used a version of a peak reduction lemma to construct a presentation for the automorphism group
\operatorname{Aut}(G)of a free productG=\ast_{i=1}^m G_i.[23] - Levitt and Vogtmann produced a Whitehead-type algorithm for solving the automorphic equivalence problem (for elects, m-tuples of elements and m-tuples of conjugacy classes) in a group
G=\pi_1(S)whereSis a closed hyperbolic surface.[24] - If an element
w\in F_n=F(X)chosen uniformly at random from the sphere of radiusm\ge 1inF(X), then, with probability tending to 1 exponentially fast asm\to\infty, the conjugacy class[w]is already automorphically minimal and, moreover,\#V\mathcal A[w]=O\left(\|w\|_X\right)=O(m). Consequently, ifw,w'\in F_nare two such ``generic" elements, Whitehead's algorithm decides whetherw,w'are automorphically equivalent in linear time in\max\{|w|_X,|w'|_X\}.[10] - Similar to the above results hold for the genericity of automorphic minimality for ``randomly chosen" finitely generated subgroups of
F_n.[25] - Lee proved that if
u\in F_n=F(X)is a cyclically reduced word such that[u]is automorphically minimal, and if wheneverx_i,x_j, i<jboth occur inuoru^{-1}then the total number of occurrences ofx_i^{\pm 1}inuis smaller than the number of occurrences ofx_i^{\pm 1}, then\#V\mathcal A[u]is bounded above by a polynomial of degree2n-3in|u|_X.[26] Consequently, ifw,w'\in F_n, n\ge 3are such thatwis automorphically equivalent to someuwith the above property, then Whitehead's algorithm decides whetherw,w'are automorphically equivalent in timeO\left(\max\{|w|_X^{2n-3},|w'|_X^2\}\right). - The Garside algorithm for solving the conjugacy problem in braid groups has a similar general structure to Whitehead's algorithm, with "cycling moves" playing the role of Whitehead moves.[27]
- Clifford and Goldstein used Whitehead-algorithm based techniques to produce an algorithm that, given a finite subset
Z\subseteq F_ndecides whether or not the subgroupH=\langle Z\rangle\le F_ncontains a ' ofF_n,that is an element of a free generating set ofF_n.[28] - Day obtained analogs of Whitehead's algorithm and of Whitehead's peak reduction for automorphic equivalence of elements of right-angled Artin groups.[29]
References
- ^ J. H. C. Whitehead, On equivalent sets of elements in a free group, Ann. of Math. (2) 37:4 (1936), 782–800. MR 1503309
- ^ Suhas Pandit, A note on automorphisms of the sphere complex. Proc. Indian Acad. Sci. Math. Sci. 124:2 (2014), 255–265; MR 3218895
- ^ Allen Hatcher, Homological stability for automorphism groups of free groups, Commentarii Mathematici Helvetici 70:1 (1995) 39–62; MR 1314940
- ^ Karen Vogtmann, Automorphisms of free groups and outer space. Proceedings of the Conference on Geometric and Combinatorial Group Theory, Part I (Haifa, 2000). Geometriae Dedicata 94 (2002), 1–31; MR 1950871
- ^ Andrew Clifford, and Richard Z. Goldstein, Sets of primitive elements in a free group. Journal of Algebra 357 (2012), 271–278; MR 2905255
- ^ Elvira Rapaport, On free groups and their automorphisms. Acta Mathematica 99 (1958), 139–163; MR 0131452
- ^ P. J. Higgins, and R. C. Lyndon, Equivalence of elements under automorphisms of a free group. Journal of the London Mathematical Society (2) 8 (1974), 254–258; MR 0340420
- ^ Roger Lyndon and Paul Schupp, Combinatorial group theory. Reprint of the 1977 edition. Classics in Mathematics. Springer-Verlag, Berlin, 2001. ISBN 3-540-41158-5MR 1812024
- ^ Marc Culler & Karen Vogtmann (1986). "Moduli of graphs and automorphisms of free groups". Inventiones Mathematicae. 84 (1): 91–119. doi:10.1007/BF01388734. MR 0830040. S2CID 122869546
- ^ Ilya Kapovich, Paul Schupp, and Vladimir Shpilrain, Generic properties of Whitehead's algorithm and isomorphism rigidity of random one-relator groups. Pacific Journal of Mathematics 223:1 (2006), 113–140
- ^ Kapovich, Ilya; Myasnikov, Alexei; Shpilrain, Vladimir (2026-03-16). Combinatorial group theory: Open problems on infinite groups. De Gruyter. pp. 12–13. ISBN 9783119146791. Retrieved 2026-03-05.
- ^ Abdó Roig, Enric Ventura, and Pascal Weil, On the complexity of the Whitehead minimization problem. International Journal of Algebra and Computation 17:8 (2007), 1611–1634; MR 2378055
- ^ Bilal Khan, The structure of automorphic conjugacy in the free group of rank two. Computational and experimental group theory, 115–196, Contemp. Math., 349, American Mathematical Society, Providence, RI, 2004
- ^ Lee, Donghi (2006). "Counting words of minimum length in an automorphic orbit". Journal of Algebra. 301 (1): 35–58. doi:10.1016/j.jalgebra.2006.04.012. ISSN 00218693. Retrieved 2025-08-27.
- ^ Shpilrain, Vladimir (2023-02-01). "Average-case complexity of the Whitehead problem for free groups". Communications in Algebra. 51 (2): 799–806. doi:10.1080/00927872.2022.2113791. ISSN 0092-7872. Retrieved 2025-07-15.
- ^ Sava Krstić, Martin Lustig, and Karen Vogtmann, An equivariant Whitehead algorithm and conjugacy for roots of Dehn twist automorphisms. Proceedings of the Edinburgh Mathematical Society (2) 44:1 (2001), 117–141
- ^ James McCool, Some finitely presented subgroups of the automorphism group of a free group. Journal of Algebra 35:1-3 (1975), 205–213; MR 0396764
- ^ James McCool, A presentation for the automorphism group of a free group of finite rank. Journal of the London Mathematical Society (2) 8 (1974), 259–266; MR 0340421
- ^ James McCool, On Nielsen's presentation of the automorphism group of a free group. Journal of the London Mathematical Society (2) 10 (1975), 265–270
- ^ Stephen Gersten, On Whitehead's algorithm, Bulletin of the American Mathematical Society 10:2 (1984), 281–284; MR 0733696
- ^ Donald J. Collins, and Heiner Zieschang, Rescuing the Whitehead method for free products. I. Peak reduction. Mathematische Zeitschrift 185:4 (1984), 487–504 MR 0733769
- ^ Donald J. Collins, and Heiner Zieschang, Rescuing the Whitehead method for free products. II. The algorithm. Mathematische Zeitschrift 186:3 (1984), 335–361; MR 0744825
- ^ Nick D. Gilbert, Presentations of the automorphism group of a free product. Proceedings of the London Mathematical Society (3) 54 (1987), no. 1, 115–140.
- ^ Gilbert Levitt and Karen Vogtmann, A Whitehead algorithm for surface groups, Topology 39:6 (2000), 1239–1251
- ^ Frédérique Bassino, Cyril Nicaud, and Pascal Weil, On the genericity of Whitehead minimality. Journal of Group Theory 19:1 (2016), 137–159 MR 3441131
- ^ Donghi Lee, A tighter bound for the number of words of minimum length in an automorphic orbit. Journal of Algebra 305:2 (2006), 1093–1101; MR 2266870
- ^ Joan Birman, Ki Hyoung Ko, and Sang Jin Lee, A new approach to the word and conjugacy problems in the braid groups, Advances in Mathematics 139:2 (1998), 322–353; Zbl 0937.20016 MR 1654165
- ^ Andrew Clifford, and Richard Z. Goldstein, Subgroups of free groups and primitive elements. Journal of Group Theory 13:4 (2010), 601–611; MR 2661660
- ^ Matthew Day, Full-featured peak reduction in right-angled Artin groups. Algebraic and Geometric Topology 14:3 (2014), 1677–1743 MR 3212581
Further reading
- Heiner Zieschang, On the Nielsen and Whitehead methods in combinatorial group theory and topology. Groups—Korea '94 (Pusan), 317–337, Proceedings of the 3rd International Conference on the Theory of Groups held at Pusan National University, Pusan, August 18–25, 1994. Edited by A. C. Kim and D. L. Johnson. de Gruyter, Berlin, 1995; ISBN 3-11-014793-9 MR 1476976
- Karen Vogtmann's lecture notes on Whitehead's algorithm using Whitehead's 3-manifold model