2017 © Pedro Peláez
 

library quicksort

PHP implementation of quicksort

image

ridesoft/quicksort

PHP implementation of quicksort

  • Friday, March 4, 2016
  • by ridesoft
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Quicksort

Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

PHP implementation of Quicksort algorithm: Quicksort is an efficient sorting algorithm base on the paradigm divide et impera - Is the best algorithm base on comparison - Best case: Θ (n log n) - Bad case: Θ (n^2), (*2)

Quicksort is the same algorithm that PHP uses for all the sorting functions, so is better to use PHP core library. This library has a only academic purpose, (*3)

Install

Install using composer:, (*4)

"require": {
        "ridesoft/quicksort: "~1.0.0"
    }

Use

<?php

use Ridesoft\Algorithm\Quicksort\QuicksortArray;

$quicksortArray = new QuicksortArray([5, 7, 200, 300, 1, 2, 90, 7, 2000, 69, 50, 30, 9, 11]);
$sortedArray = $quicksortArray->getSortedArray()

$sortedArray is now: [1, 2, 5, 7, 7, 9, 11, 30, 50, 69, 90, 200, 300, 2000], (*5)

The Versions

04/03 2016

dev-master

9999999-dev

PHP implementation of quicksort

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Maurizio Brioschi

02/03 2016

dev-dev

dev-dev

PHP implementation of quicksort

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Maurizio Brioschi

28/02 2016

1.0.0

1.0.0.0

PHP implementation of quicksort

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Maurizio Brioschi