Question: Project 3 Overview For project 3 , you will find the 2 5 th , 5 0 th , and 7 5 th % ile
Project Overview
For project you will find the thth and th ile in a list of integers randomly sampled from a gamma distribution. Importantly, as the input size increases, the number of unique values will grow slowly, and there will be an increasing number of duplicates.
You will do this in ways, and benchmark the time taken for each method:
Using std::sort
Using quickselect times, once for each ile
Modifying quickselect to recurse if any of the values are in the subrange
Using a modified counting sort that uses hashes
Because there will be many duplicates, counting sort seems like a good choice. However, since a gamma distribution has no upper limit we must use the modification of counting sort that uses hashes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
