Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Seven Bubble sort for you: which do you choose?
#19
Yes Russian sorting halves is accelerated bubble sorting

Code: (Select All)
For t = 1 To 2
  For i = q(t) To q(t+1)
    For j = i+1 To q(t+1)
        If d(2,i) > d(2,j) Then Swap d(2,i), d(2,j)
Next: Next: Next

[Image: rsp2023.png] [Image: rsp2023.png]

There is a recursive version approaching quick sort

Quick sort invente by an American in USSR in 1960
Write name of program in 1st line to copy & paste & save filename.bas
Insert program pictures: press print-screen-shot button
Open paint & Paste & Save as PNG
Add picture file to program topic

Russia looks world from future. Big data is peace data.
I never recommend anything & always write only about myself
Reply


Messages In This Thread
RE: Seven Bubble sort for you: which do you choose? - by DANILIN - 03-14-2023, 10:05 PM



Users browsing this thread: 2 Guest(s)