quick sort
Предварительный просмотр (5 стр.)
Прокрутите вниз 👇
1 / 25
2 / 25
3 / 25
4 / 25
5 / 25
О "quick sort"
quick sort quick sort algorithms and data structures course 1 quick sort idea algorithms and data structures course 2 27 38 12 39 27 16 pivot choose first element as pivot notice anything special about the position of pivot in the final sorted items? 39 27 38 12 16 27 12 16 27 27 38 39 pivot pivot partition arr about the pivot 27 recursively sort the two parts quick sort divide step example algorithms and data structures course 3 p = p: if a[k]=y >= p: increment k: p < p x ≥ p y ? p < p x ≥ p y ? i m k j i m k j s1 s2 s1 s2 quick sort partition …
Этот файл содержит 25 стр. в формате PPTX (434,3 КБ). Чтобы скачать "quick sort", нажмите кнопку Telegram слева.