← Back to DSA Visualizer

Array Algorithms

Visualize sorting and searching algorithms on arrays

Understanding Array Algorithms

Sorting Algorithms

  • Bubble Sort: Simple but inefficient O(n²)
  • Quick Sort: Fast average case O(n log n)
  • Merge Sort: Stable and consistent O(n log n)
  • Heap Sort: In-place O(n log n)

Search Algorithms

  • Linear Search: Works on any array O(n)
  • Binary Search: Requires sorted array O(log n)