Skip to content

mkawsar/php-sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms

Sorting Algorithms with php

System requirements

  1. PHP 7.2 or higher (We have used PHP 7.3 for development)
  2. Composer

Installation

  • Clone the repository
  • Make sure PHP and composer is installed in system
  • Run composer install to install the dependencies

Project Structure

  • Our solutions are inside the src directory
  • Inside each problem directory we have 2 files app.php and index.php
  • Here app.php contains the actual solution of the problem
  • index.php is used to demonstrate the solution. Each index.php uses it's respective app.php for the demonstration of that problem

Running the solutions

Bubble Sort

 php src/bubble/index.php

Hear Sort

php src/heap/index.php

Insertion Sort

php src/insertion/index.php

Merge Sort

php src/merge/index.php

Recursive

php src/recursive/index.php

Selection

php src/selection/index.php

Support

If you have any questions or confusion please email me at [email protected] or open an issue in the repository.