Modify the subroutine quick_select so that a variable named compare_count
records the number of times two values are compared. This provides a crude measure of the complexity of the selection algorithm. Experiment with the program by
generating 10,000 numbers using the built-in subroutine random_number (3.15).
Also collect data about actual running time using the built-in subroutine cpu_time
(8.2).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here