filmov
tv
Quicksort: Partitioning an array

Показать описание
This video shows how partitioning may be achieved, as part of the process of Quicksort. At the end of the partitioning process, the array is divided into two sub-arrays. One sub-array contains elements that are less than a chosen pivot, while the other contains elements that are more than the pivot. The partition function should return the position of the pivot.
Note:
While recording the video, I was focusing on moving the pivot to the (i+1)th position towards the end of the video, and in my hurry to finish the video, I had forgotten that a swap is sufficient. Agree (and this has been brought up many times in the past) that a swap at the last step is quicker and more efficient. However, it is not incorrect to shift - just inefficient. Actually, as mentioned right at the beginning, the objective here is to find the position of the pivot for the partition.
Note:
While recording the video, I was focusing on moving the pivot to the (i+1)th position towards the end of the video, and in my hurry to finish the video, I had forgotten that a swap is sufficient. Agree (and this has been brought up many times in the past) that a swap at the last step is quicker and more efficient. However, it is not incorrect to shift - just inefficient. Actually, as mentioned right at the beginning, the objective here is to find the position of the pivot for the partition.
Quicksort: Partitioning an array
Quick sort in 4 minutes
Learn Quick Sort in 13 minutes ⚡
QuickSort in 3 Minutes
Sort Colors - Quicksort Partition - Leetcode 75 - Python
2.8.1 QuickSort Algorithm
Quick Sort Algorithm Explained!
Quick Sort Algorithm
Quick sort in DSA
Quuck Sort Algorithm in Data Structures #quicksort #sorting #algorithm #datastructures
Quicksort Algorithm: A Step-by-Step Visualization
Quick Sort - Partition
Quicksort Sort Algorithm in Java - Full Tutorial With Source
Quick Sort #animation
QuickSort The partition step
Quick Select Algorithm Visualized (and how it compares to Quick Sort!)
Quicksort Algorithm Visualized
Quicksort vs Mergesort in 35 Seconds
CS 124: Quicksort Partitioning
Quick Sort: Partition Algorithm
Introduction to Quick Sort and Partitioning the array | Algorithms
Partition Function of Quick Sort | GeeksforGeeks
Quick Sort For Beginners | Strivers A2Z DSA Course
L-3.1: How Quick Sort Works | Performance of Quick Sort with Example | Divide and Conquer
Комментарии