Cuthill–McKee algorithm
In numerical linear algebra, the Cuthill–McKee algorithm (CM), named after Elizabeth Cuthill and James McKee, is an algorithm to permute a sparse matrix that has a symmetric sparsity pattern into a band matrix form with a small bandwidth.[3] The reverse Cuthill–McKee algorithm (RCM) due to Alan George and Joseph Liu is the same algorithm but with the resulting index numbers reversed.[2] In practice this generally results in less fill-in than the CM ordering when Gaussian elimination is applied.[src] The Cuthill McKee algorithm is a variant of the standard breadth-first search algorithm used in graph algorithms.[1] It starts with a peripheral node and then generates levels R_i for i=1, 2,..[src] until all nodes are exhausted.[src] The set R_{i+1} is created from set R_i by listing all vertices adjacent to all nodes in R_i .[src] These nodes are ordered according to predecessors and degree.[src]
In numerical linear algebra, the Cuthill–McKee algorithm (CM), named after Elizabeth Cuthill and James McKee, is an algorithm to permute a sparse matrix that has a symmetric sparsity pattern into a band matrix form with a small bandwidth.[3] The reverse Cuthill–McKee algorithm (RCM) due to Alan George and Joseph Liu is the same algorithm but with the resulting index numbers reversed.[2] In practice this generally results in less fill-in than the CM ordering when Gaussian elimination is applied.[src] The Cuthill McKee algorithm is a variant of the standard breadth-first search algorithm used in graph algorithms.[1] It starts with a peripheral node and then generates levels R_i for i=1, 2,..[src] until all nodes are exhausted.[src] The set R_{i+1} is created from set R_i by listing all vertices adjacent to all nodes in R_i .[src] These nodes are ordered according to predecessors and degree.[src] ==Algorithm== Given a symmetric n\times n matrix we visualize the matrix as the adjacency matrix of a graph.[src] The Cuthill–McKee algorithm is then a relabeling of the vertices of the graph to reduce the bandwidth of the adjacency matrix.[1] The algorithm produces an ordered n-tuple R of vertices which is the new order of the vertices.[src] First we choose a peripheral vertex (the vertex with the lowest degree) x and set R := ( \{ x \}) .[src] Then for i = 1,2,\dots we iterate the following steps while |R| Construct the adjacency set A_i of R_i (with R_i the i-th component of R ) and exclude the vertices we already have in R A_i := \operatorname{Adj}(R_i) \setminus R Sort A_i ascending by minimum predecessor (the already-visited neighbor with the earliest position in R), and as a tiebreak ascending by vertex degree.[src] Append A_i to the Result set R .[src] In other words, number the vertices according to a particular level structure (computed by breadth-first search) where the vertices in each level are visited in order of their predecessor's numbering from lowest to highest.[src] Where the predecessors are the same, vertices are distinguished by degree (again ordered from lowest to highest).[src] ==See also== Graph bandwidth Sparse matrix ==References== Cuthill–McKee documentation for the Boost C++ Libraries.[3] A detailed description of the Cuthill–McKee algorithm.[1] symrcm MATLAB's implementation of RCM.[src] reverse_cuthill_mckee RCM routine from SciPy written in Cython.[2]
28 sentences · 28 cited inline · 4 references stored
References
- Ciprian Zavoianu - weblog: Tutorial: Bandwidth reduction - The CutHill-McKee Algorithm · retrieved 2026-11-17 · rev 1320572959
Cite this reference
MLA "Ciprian Zavoianu - weblog: Tutorial: Bandwidth reduction - The CutHill-McKee Algorithm." 2026-11-17. http://ciprian-zavoianu.blogspot.ch/2009/01/project-bandwidth-reduction.html. Accessed 26 November 2026.
Chicago "Ciprian Zavoianu - weblog: Tutorial: Bandwidth reduction - The CutHill-McKee Algorithm." 2026-11-17. http://ciprian-zavoianu.blogspot.ch/2009/01/project-bandwidth-reduction.html.
APA encyclopegia.org. (2026). Ciprian Zavoianu - weblog: Tutorial: Bandwidth reduction - The CutHill-McKee Algorithm. Retrieved November 26, 2026, from http://ciprian-zavoianu.blogspot.ch/2009/01/project-bandwidth-reduction.html
- The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1320572959
Cite this reference
MLA "The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2026-11-18." The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2. 2026-11-17. https://archive.siam.org/meetings/csc16/slides/ariful_azad_CSC16.pdf. Accessed 26 November 2026.
Chicago "The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2026-11-18." The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2. 2026-11-17. https://archive.siam.org/meetings/csc16/slides/ariful_azad_CSC16.pdf.
APA The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2. (2026). The Reverse Cuthill-McKee Algorithm in Distributed-Memory [1] , slide 8, 2016 Wikipedia revision 1320572959, retrieved 2026-11-18. Retrieved November 26, 2026, from https://archive.siam.org/meetings/csc16/slides/ariful_azad_CSC16.pdf
- E. Cuthill and J. McKee. Reducing the bandwidth of sparse symmetric matrices In Proc. 24th Nat. Conf. ACM , pages 157–172, 1969. Wikipedia revision 1320572959, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1320572959
Cite this reference
MLA "E. Cuthill and J. McKee. Reducing the bandwidth of sparse symmetric matrices In Proc. 24th Nat. Conf. ACM , pages 157–172, 1969. Wikipedia revision 1320572959, retrieved 2026-11-18." E. 2026-11-17. http://portal.acm.org/citation.cfm?id=805928. Accessed 26 November 2026.
Chicago "E. Cuthill and J. McKee. Reducing the bandwidth of sparse symmetric matrices In Proc. 24th Nat. Conf. ACM , pages 157–172, 1969. Wikipedia revision 1320572959, retrieved 2026-11-18." E. 2026-11-17. http://portal.acm.org/citation.cfm?id=805928.
APA E. (2026). E. Cuthill and J. McKee. Reducing the bandwidth of sparse symmetric matrices In Proc. 24th Nat. Conf. ACM , pages 157–172, 1969. Wikipedia revision 1320572959, retrieved 2026-11-18. Retrieved November 26, 2026, from http://portal.acm.org/citation.cfm?id=805928
- J. A. George and J. W-H. Liu, Computer Solution of Large Sparse Positive Definite Systems, Prentice-Hall, 1981 Wikipedia revision 1320572959, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1320572959
Cite this reference
MLA "J. A. George and J. W-H. Liu, Computer Solution of Large Sparse Positive Definite Systems, Prentice-Hall, 1981 Wikipedia revision 1320572959, retrieved 2026-11-18." J. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1320572959. Accessed 26 November 2026.
Chicago "J. A. George and J. W-H. Liu, Computer Solution of Large Sparse Positive Definite Systems, Prentice-Hall, 1981 Wikipedia revision 1320572959, retrieved 2026-11-18." J. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1320572959.
APA J. (2026). J. A. George and J. W-H. Liu, Computer Solution of Large Sparse Positive Definite Systems, Prentice-Hall, 1981 Wikipedia revision 1320572959, retrieved 2026-11-18. Retrieved November 26, 2026, from https://en.wikipedia.org/w/index.php?oldid=1320572959
Cite this article
MLA
"Cuthill–McKee algorithm." encyclopegia.org, 2025, https://encyclopegia.org/wiki/cuthill-mckee-algorithm. Accessed 26 November 2026.
Chicago
"Cuthill–McKee algorithm." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/cuthill-mckee-algorithm.
APA
encyclopegia.org. (2025). Cuthill–McKee algorithm. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/cuthill-mckee-algorithm
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON