Ajit's Voice

Merge Sort

6 min · 1 apr 20206 min
aflevering Merge Sort cover

Beschrijving

Merge sort is a divide-and-conquer algorithm based on the idea of breaking down a list into several sub-lists until each sublist consists of a single element and merging those sublists in a manner that results into a sorted list.

Reacties

0

Wees de eerste die een reactie plaatst

Meld je nu aan en word lid van de Ajit's Voice community!

Probeer gratis

Probeer 7 dagen gratis

€ 9,99 / maand na proefperiode. · Elk moment opzegbaar.

  • Podcasts die je alleen op Podimo hoort
  • 20 uur luisterboeken / maand
  • Gratis podcasts
Probeer gratis

Alle afleveringen

5 afleveringen

aflevering Insertion Sort Algirithm artwork

Insertion Sort Algirithm

Insertion sort is the sorting mechanism where the sorted array is built having one item at a time. The array elements are compared with each other sequentially and then arranged simultaneously in some particular order. This sort works on the principle of inserting an element at a particular position, hence the name Insertion Sort. The first step involves the comparison of the element in question with its adjacent element. And if at every comparison reveals that the element in question can be inserted at a particular position, then space is created for it by shifting the other elements one position to the right and inserting the element at the suitable position. The above procedure is repeated until all the element in the array is at their apt position.

30 mrt 20204 min