Retrieves an element from an array in O(1) via base address pointer arithmetic.
An indexed sequence of elements with direct access by position (typically stored contiguously). Choose an algorithm below to launch its interactive simulation workstation.
Showing 33 of 33 algorithms
Retrieves an element from an array in O(1) via base address pointer arithmetic.
Repeatedly traverses the list, compares adjacent elements, and swaps them when they are out of order.
Divides the input list into two parts: a sorted sublist and an unsorted sublist.
Maintain a dynamic window range to compute aggregate metrics in O(n) time.
Converging pointer technique to find target pairs or partition in O(n) time.
Estimate the likely position of a target in uniformly distributed sorted data.
Search a sorted array by jumping fixed-size blocks before a local scan.
Shift all elements to the left, wrapping the first element to the end.
Divide the unsorted list into n sublists, then repeatedly merge sublists to produce new sorted sublists.
Merge two sorted halves of an array while preserving sorted order.