A visualization of heap sort made using D3. Green indicates comparison, red indicates swapping. A heap is constructed in place and then the max element is repeatedly removed to sort.