Algorithms-And-Data-Structures icon indicating copy to clipboard operation
Algorithms-And-Data-Structures copied to clipboard

Add sorting algorithms

Open yshshrm opened this issue 8 years ago • 8 comments

Contributing Guidelines

  • The repository is structured language-wise i.e. algorithms in a certain language go in a specific folder.
  • The naming convention to be followed is algo_name.language_extention i.e. the overall path should be language/algo_name.language_extention
  • It is your choice to include only the function or the entire program for the algorithm.
  • If the folder for your language does not exist, create a new one.
  • Don't be afraid to make a PR!

How to make PR

  1. Fork Repo on Web Page
  2. Make your changes on your forked repo
  3. Make Pull Request to master

yshshrm avatar Oct 19 '17 19:10 yshshrm

Hi @kvaluruk ! Is there any specific sorting algorithm that you would like added? Some of the more inefficient ones are easier to understand for beginners, but I think having the more advanced ones is also important. If you want different sorting algorithms, would they ideally be in separate files or the same file?

cgarciahdez avatar Oct 19 '17 20:10 cgarciahdez

I can help out with that!

carewdavid avatar Oct 20 '17 00:10 carewdavid

Hi @kvaluruk , I would like to add all basic sorting algorithms for java (bubble , insertion , selection , quicksort , merge sort).

PiSolve avatar Oct 20 '17 01:10 PiSolve

@cgarciahdez There isn't any specific list of sorting algorithms to be added. This is a project for beginners to get started with open-source (and build an algorithm directory in the meanwhile), so any type of algorithms would be welcome. As for sorting algorithms, I'd prefer them to be in the same file, although there isn't any compulsion. Thanks for asking!

yshshrm avatar Oct 20 '17 06:10 yshshrm

Hi @kvaluruk I would like to add search algorithm for java like binary search and linear search.

rahmatrasyidi avatar Oct 20 '17 16:10 rahmatrasyidi

Hi @kvaluruk I added Java implementation of heap sort and created a PR.

antrix190 avatar Oct 21 '17 21:10 antrix190

It's better if you can implement different folders like "Sorting_algorithms" and "Data_structures" for each language , it will be easy to contributors also users of this repo :)

jpdilan avatar Oct 25 '17 10:10 jpdilan

@jpdilan Agreed. I've created an issue for the same.

yshshrm avatar Oct 25 '17 19:10 yshshrm