2D Arrays, Sorting, and Binary Search

  1. Contents
  2. Two-Dimensional Arrays
  3. Some Sorting Algorithms
  4. Binary Search

Two-Dimensional Arrays

Introduction to Two-Dimensional Arrays

Accessing Two-Dimensional Array Elements

Initializing a Two-Dimensional Array

The length Field of Two-Dimensional Arrays

Ragged Arrays

More Than Two Dimensions

Some Sorting Algorithms

There are many sorting algorithms. Most of them are more complex but run faster than the ones introduced below. Quick sort, heap sort, and merge sort are such examples. For detailed information about more complex sorting algorithms, visit sorting-algorithms.com

Selection Sort

Insertion Sort

Bubble Sort

Binary Search