Title Count visits in selection sort
Catalog Type SLCItem
Persistent ID https://codecheck.io/files/horstmann/codecheck-bj-4-sort-103
Platform Name CodeCheck
Features Code Completion
Description In section 14.5, we approximated a count of the array visits in merge sort. Your task is to provide an accurate measurement for the implementation used in section 15.4. Count each occurrence of a[i], first[i], or second[i] as a visit. When recursively generating smaller merge sorters, be sure to copy their visit counts after they have completed.
Keywords Sorting and Searching
Author Cay Horstmann
Institution San José State University
Iframe URL https://codecheck.io/files/horstmann/codecheck-bj-4-sort-103
Protocol SPLICE, LTI 1.1
Protocol URL
License https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language Java
Natural Language en

Preview

SPLICE Output