romanjoy / romp-ryo-sevensixteen

0 stars 0 forks source link

How to understand Sort in Algo? #27

Open romanjoy opened 2 years ago

romanjoy commented 2 years ago

Bubble Sort

bubble

romanjoy commented 2 years ago

Insertion Sort

insertsort

romanjoy commented 2 years ago

Selection Sort

selectionsort

romanjoy commented 2 years ago

Divide-and-Conquer Approach

Divide

This involves dividing the problem into smaller sub-problems.

Conquer

Solve sub-problems by calling recursively until solved.

Combine

Combine the sub-problems to get the final solution of the whole problem.

https://www.baeldung.com/cs/divide-and-conquer-strategy

Merge Sort

Process

mergesort