NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

Heap Sort

Open atarax665 opened this issue 6 years ago • 19 comments

🚀 Feature

Heap Sort Implementation -Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end. We repeat the same process for remaining element.

Have you read the Contributing Guidelines on Pull Requests?

Yes

Motivation

Heap sort is one of the basic sorting algorithm. Its time complexity is O(nlogn).

Pitch

Heap sort algorithm has limited uses because Quicksort and Mergesort are better in practice. Nevertheless, the Heap data structure itself is enormously used. Heap sort can be used in problems like where we need to sort almost sorted array and so on.

Languages Supported:

  • C [@rgrupesh]
  • CPP [@bagladivyang03]
  • Python [@avinashkranjan]
  • Java [@ritvij14 ]
  • JavaScript [@nagasuruthika]
  • C#
  • GO [@GajjarMiten ]

atarax665 avatar Aug 21 '20 00:08 atarax665

I would like to do in c++ pls assign @atarax665

bagladivyang03 avatar Aug 21 '20 02:08 bagladivyang03

@bagladivyang03 You can start working on this in C++. Happy Coding!

atarax665 avatar Aug 21 '20 02:08 atarax665

I want to work in C. @atarax665

rgrupesh avatar Aug 21 '20 05:08 rgrupesh

I would like to work on this issue in python @atarax665

avinashkranjan avatar Aug 21 '20 06:08 avinashkranjan

@rgrupesh You can start working in C. @avinashkranjan You can work on this issue in Python. Go through the contribution guidelines if you haven't yet. #398 Happy Coding!

atarax665 avatar Aug 21 '20 07:08 atarax665

@atarax665 you already have a heap_sort.py in NeoAlgo/Python/sort/.. Do you still me to push my verison of code??

avinashkranjan avatar Aug 21 '20 08:08 avinashkranjan

@atarax665 is this included for Contributor's Hack? I would like to do this in Java

Also please put CH20 tag if it is being considered for it.

ritvij14 avatar Aug 21 '20 08:08 ritvij14

@atarax665 you already have a heap_sort.py in NeoAlgo/Python/sort/.. Do you still me to push my verison of code??

@avinashkranjan I want you to modify the existing heap_sort.py file as the existing code doesn't have driver code, proper documentation and functions need to be refactored.

atarax665 avatar Aug 21 '20 08:08 atarax665

@atarax665 you already have a heap_sort.py in NeoAlgo/Python/sort/.. Do you still me to push my verison of code??

@avinashkranjan I want you to modify the existing heap_sort.py file as the existing code doesn't have driver code, proper documentation and functions need to be refactored.

Okay..I'll make the required changes..

avinashkranjan avatar Aug 21 '20 09:08 avinashkranjan

@atarax665 Made the changes, Have a look

avinashkranjan avatar Aug 21 '20 09:08 avinashkranjan

Hey @atarax665 I would like to it in Golang.

GajjarMiten avatar Aug 21 '20 10:08 GajjarMiten

Hey, @atarax665 I'd like this to take this issue in javascript.

Nagasuruthika avatar Aug 21 '20 12:08 Nagasuruthika

Hey , @atarax665 Pls review the pr #666 that i have completed the heap sort in C++

bagladivyang03 avatar Aug 21 '20 18:08 bagladivyang03

@atarax665 is this included for Contributor's Hack? I would like to do this in Java

Also please put CH20 tag if it is being considered for it.

@ritvij14 Go ahead

siddharth25pandey avatar Aug 21 '20 20:08 siddharth25pandey

Hey @atarax665 I would like to it in Golang.

@GajjarMiten Go ahead

siddharth25pandey avatar Aug 21 '20 20:08 siddharth25pandey

Hey, @atarax665 I'd like this to take this issue in javascript.

@Nagasuruthika Go ahead

siddharth25pandey avatar Aug 21 '20 20:08 siddharth25pandey

@siddharth25pandey could you also put a difficulty tag on this issue? It will help all the assigned contributors to keep track of their progress.

ritvij14 avatar Sep 04 '20 04:09 ritvij14

I would like to work on this issue in C @atarax665

prasadvpatil avatar Sep 04 '20 18:09 prasadvpatil

@atarax665 @iamrajiv please add a difficulty label to this issue.

ritvij14 avatar Sep 29 '20 15:09 ritvij14