This subroutine partitions the given list for the quicksort algorithm
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(inout) | :: | list(:) | list to be partitioned |
||
integer, | intent(out) | :: | marker | marker where the list is partitioned |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | left | ||||
integer, | private | :: | right | ||||
integer(kind=long_k), | private | :: | pivot | ||||
integer(kind=long_k), | private | :: | temp |