Jump to content

Heap's algorithm: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

6 January 2025

8 October 2024

1 January 2024

31 October 2023

17 May 2023

23 April 2023

6 June 2022

11 February 2022

13 January 2022

13 December 2021

15 November 2021

29 October 2021

7 May 2021

6 May 2021

12 April 2021

10 March 2021

19 February 2021

  • curprev 05:5105:51, 19 February 2021 97.126.19.185 talk 13,205 bytes 0 fix iterative case to not call the else branch unnecessarily (for n=4 cuts down calls into the non-swap else branch to 18 from 41) the 1977 paper sets this to i=2 with 1-indexed arrays, so we set it here to i=1 with 0-indexed arrays (the powerpoint PDF appears to be incorrect) undo

26 January 2021

  • curprev 18:3018:30, 26 January 2021 92.9.167.73 talk 13,205 bytes 0 It seems the if statement should be the other way around upon testing the recursive solution. I have not tested the other solutions so I will leave them as is, but they potentially need a swap of the if statements as well. undo

4 January 2021

21 December 2020

12 December 2020

14 October 2020

10 July 2020

24 March 2020

13 March 2020

27 February 2020

26 February 2020

  • curprev 23:0923:09, 26 February 2020 SyntaxZombie talk contribs m 13,103 bytes 0 in recursive algorithm, when k is even, A[0] and A[k-1] should swap, and when k is odd, A[i] and A[k-1] should swap. Otherwise, when K == 0, the algorithm swaps the first and last element twice and never swaps the second and last element. undo

2 February 2020

9 January 2020

7 December 2019

25 November 2019

26 September 2019

1 August 2019

29 May 2019

13 April 2019

12 April 2019

5 April 2019

10 March 2019

9 March 2019

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)