Skip to content

A simple example of a divide and conquer algorithm: merge sort. Example is used to explain the divide and conquer technique.

Notifications You must be signed in to change notification settings

bitween-software/merge-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merge sort

This is a simple example a divide-and-conquer algorithm. It uses the Merge sort algorithm as an example. Using this algorithm in PHP is fairly simple:

    $mergeSort = new Bitween\MergeSort();
    $sortedArray = $mergeSort->sort([ 3, 2, 1]);

    echo $sortedArray === [ 1, 2, 3 ]; // true

About

A simple example of a divide and conquer algorithm: merge sort. Example is used to explain the divide and conquer technique.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages