Question: to execute) except for the act of assigning a value into a slot of the vector passed in (such as setting V1[]=42; ), which requires

![a slot of the vector passed in (such as setting V1[]=42; ),](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2c7399b4e5_74566f2c73947d09.jpg)
to execute) except for the act of assigning a value into a slot of the vector passed in (such as setting V1[]=42; ), which requires 100 units of time. (Assigning a value to a normal int variable, or into any other vector or collection, requires no time in this hypothetical model.) How long does each algorithm take to run for this particular data under these particular conditions? Which sorting algorithm requires less time to run? Assume that selection does not perform a swap if not necessary, that is, if the two indexes of interest are the same. selection sort runtime merge sort runtime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
