The document describes code for four sorting algorithms: insertion sort, selection sort, merge sort, and heap sort. For each algorithm, it provides the code, explains the algorithm's approach for sorting an array, and includes a main function that takes user input for an array and prints the sorted output.