Sorted array

Sorted array
TypeArray
Invented1945
Invented byJohn von Neumann
Time complexity in big O notation
Operation Average Worst case
Search O(log n) O(log n)
Insert O(n) O(n)
Delete O(n) O(n)
Space complexity
Space O(n) O(n)

A sorted array is an array data structure in which each element is sorted in numerical, alphabetical, or some other order, and placed at equally spaced addresses in computer memory. It is typically used in computer science to implement static lookup tables to hold multiple values which have the same data type. Sorting an array is useful in organising data in ordered form and recovering them rapidly.