Skip to content

jaredraby/mergesort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mergesort

Merge sort implementation in python

Bottom Up implementation of merge sort

Requirements
The mergesort will take in an array and sort the values in ascending order.

Functionality

mergesort(array)

  • Break down the entire array into mod 2 groups
    • Create a loop variable, tracking the number of times the sort fucntion has been called
    • Loop while loop variable < log2(n) rounded down where n is number elements in an array
      • :
      • Call sorting function which keeps track of left an right array value indices
        • Loop
          • Create a right array and left arround index value to strack the index of compared values
          • Compare each value and put them back into the original array
        • End loop

About

Merge sort implementation in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages