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

SEARCHING / İNTERAKTİF DENEY

Binary Search

Sıralı bir dizide ortadaki elemanı kontrol ederek arama yapan algoritmadır. Her adımda arama alanını yarıya indirir.

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

İkili arama için dizi küçükten büyüğe hazırlandı.

İkili arama sıralı bir dizi gerektirir; yeni diziler otomatik sıralanır. Sıfırlama, aynı diziyi başlangıç durumuna getirir.

KODUN AKIŞI

Şu anda ne oluyor?

  1. 01Set the left and right bounds of the sorted array
  2. 02Compare the middle value with the target
  3. 03If equal, the target is found; otherwise discard one half
  4. 04If the range is empty, the target was not found

MALİYET ANALİZİ

Algorithm properties

Best case
O(1)
Ortalama
O(log n)
Worst case
O(log n)
Extra space
O(1)

İndeksler sıfırdan başlar. Aranan değer dizide olmayabilir. Karmaşıklıklar algoritmaya aittir; görselleştirme geçmişi ek bellek kullanır.