Mehmet Karataş LogoMehmet Karataş
HomeServicesProjectsBlogAboutFunToolsCourses (TR)
Contact
Mehmet Karataş LogoMehmet Karataş

Contact

I build solutions with modern web and mobile technologies.

Contact
benmuhendisiniz@gmail.com

Diyarbakır, Türkiye — Remote services across Türkiye and abroad

Quick links

  • Home
  • Services
  • Projects
  • Blog
  • About
  • Contact
  • Fun
  • Tools
  • Courses (TR)
  • CV / Résumé (TR)

Services

  • Web Development
  • Mobile App Development
  • Custom Software Development
  • E-Commerce Websites
  • SEO and Online Visibility
  • Software and Project Consulting

© 2026 Mehmet Karataş. All rights reserved.

Privacy noticeCookie policy
HomeProjectsBlogServicesAboutFunToolsCourses (TR)
Algoritma atölyesi

SORTING / İNTERAKTİF DENEY

Quick Sort

Böl ve yönet (divide and conquer) stratejisini kullanan verimli bir sıralama algoritmasıdır. Bir pivot eleman seçilir ve diğer elemanlar pivottan küçük veya büyük olmalarına göre bölünür.

Ortalama O(n log n)
Bubble SortQuick SortMerge SortSelection SortInsertion SortHeap SortBinary SearchLinear Search
Deney hazır
STEP 0 / 71
Comparisons00
Swaps00
Writes00
64
0
22
1
81
2
39
3
15
4
73
5
48
6
92
7
31
8
56
9
10
10
67
11
Comparisons Moves Pivot / orta Sorted
Hazır

The array is ready. Start the first step.

Sıfırlama, aynı diziyi başlangıç durumuna getirir.

KODUN AKIŞI

Şu anda ne oluyor?

  1. 01Select the last element as the pivot
  2. 02Compare each value with the pivot
  3. 03Move smaller values to the left
  4. 04Place the pivot; repeat for both partitions

MALİYET ANALİZİ

Algorithm properties

Best case
O(n log n)
Ortalama
O(n log n)
Worst case
O(n²)
Extra space
O(log n)
Kararlı sıralama
Hayır

Space: O(log n) on average, O(n) in the worst case. The last element is selected as the pivot. Karmaşıklıklar algoritmaya aittir; görselleştirme geçmişi ek bellek kullanır.