Question: Problem description: solve the following problems: 1 . generate a histogram of 2 0 , 0 0 0 randomly generated integer numbers according to a
Problem description: solve the following problems:
generate a histogram of randomly generated integer numbers according to a normal distribution with a userspecified mean and standard deviation.
generate a histogram of randomly generated floatingpoint numbers according to a uniform distribution with a userspecified range.
implement an almost generic randomizedQuickSort algorithm to sort an array of TokenFreq objects by a given sorting criterion. To realize this, you will use
function templates
function objects, Lambda expressions, or a pointer to functions
implement an almost generic algorithm the randomized version to find the kth ranked object in an array without first sorting this array. Same as above, you will use. function templates and function objects.
Deliverables:
Please follow the problem solving process and submit the following steps in one document :
A designdoc that describes the problemsolving process for all the above problems. For each problem, include the following aspects:
input and output of the problem
your algorithm in pseudo code with comments
worstcase time complexity analysis
your choice of data structures with a brief justification in the final coding stage egWe declared a userdefined struct for because
Your program files. You are required to solve all the problems in one CPP project, similar to what we did in Coding Lab
A header file:
the function prototype to generate x uniformly distributed random numbers
the function prototype to generate x random numbers following a specified normal distribution
the function prototype to calculate the underlying data of a histogram, given a collection of numbers
the function prototype to print out a histogram using a userspecified symbol eg
the function prototype of the partition subroutine that's shared by the quickSort and kth ranked object algorithms
the function prototype of the almost generic quicksort algorithm
the function prototype of the almost generic kth ranked algorithm
your CPP file with comments
define the above functions
a header file consisting of your unit tests:
at least two unit tests per function
a separate cpp file containing the main function
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
