Everything About ___
Live briefing

Everything about Heap's algorithm

Method of generating all permutations of n objects

Heap's algorithm generates all possible permutations of n objects. It was first proposed by B. R. Heap in 1963. The algorithm minimizes movement: it generates each permutation from the previous one by interchanging a single pair of elements; the other n−2 elements are not disturbed. In a 1977 review of permutation-generating algorithms, Robert Sedgewick concluded that it was at that time the most effective algorithm for generating permutations by computer. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Heap's algorithmA 5-minute orientation
  2. Skim a recent paper: Optimal Configuration of a Hybrid Photovoltaic/Wind Turbine/Biomass/Hydro-Pumped Storage-Based Energy System Using a Heap-Based Optimization AlgorithmInfluential work since 2022
  3. Pick up a classic book: Introduction to AlgorithmsThe most-reprinted book on the subject
  4. Read the landmark paper: An efficient agglomerative clustering algorithm using a heapCited 94 times
  5. Go sideways: Merge algorithmA closely related topic
  6. Go sideways: Insertion sortA closely related topic

📖 Definitions

No dictionary entry for this exact phrase.

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics