the cedar ledge

Bubble Sort

Date: December 21 2020

Summary:

Keywords: ##zettel #bubble #sort #algorithms #archive

Bibliography

Not Available

Table of Contents

    1. Technical Definition
    2. Discussion
    3. Plain-Word Explanation
    4. Code Implementation
  1. How To Cite
  2. References
  3. Discussion

Technical Definition

Discussion

Plain-Word Explanation

Code Implementation

function bubblesort(arr)
    size = length(arr)
    while size > 1
        for curr = 2:size
            prior = curr - 1
            if arr[curr] < arr[prior]
                arr[curr], arr[prior] = arr[prior], arr[curr]
            end
        end
        size -= 1
    end
    return arr
end

How To Cite

Zelko, Jacob. Bubble Sort. https://jacobzelko.com/12212020214025-bubble-sort. December 21 2020.

References

Discussion

CC BY-SA 4.0 Jacob Zelko. Last modified: May 19, 2024. Website built with Franklin.jl and the Julia programming language.