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

Bubble Sort

Yan yana duran elemanları karşılaştırıp, sıralı değilse yerlerini değiştiren basit bir sıralama algoritmasıdır. Her geçişte dizideki en büyük eleman "baloncuk gibi" en sona yükselir.

Ortalama O(n²)
Bubble SortQuick SortMerge SortSelection SortInsertion SortHeap SortBinary SearchLinear Search
Deney hazır
STEP 0 / 112
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. 01Move through the unsorted section
  2. 02Compare adjacent values
  3. 03Swap them if the left value is greater
  4. 04Fix the last element in place; stop if no swaps occurred

MALİYET ANALİZİ

Algorithm properties

Best case
O(n)
Ortalama
O(n²)
Worst case
O(n²)
Extra space
O(1)
Kararlı sıralama
Evet

Kararlı sıralama, eşit değerli elemanların kendi aralarındaki sırasını korur. Karmaşıklıklar algoritmaya aittir; görselleştirme geçmişi ek bellek kullanır.