Question: I need help with this assignment! Our professor does not explain well in the class and I do not really have an idea what to
I need help with this assignment! Our professor does not explain well in the class and I do not really have an idea what to do! It's a C -language course.
Thank You!




Due: Goal: Study the effect of pivot choice on number of comparisons made by partition algorithm used for partitioning data around the pivot value in quick sort algorithm. Constraints: - memory for data set allocated dynamically - data set memory to be returned to system after usage data set generated using random number generator - uses counts using key idea presented in class - compile using make/Makefile Statement : Write a modular, properly documented C-programs to study the above mentioned (in goal). The pivot value choices are: at mean of at first position and at last position (that is, at (first+last) /2) and and at random position in range of first to last positions (that is, first+ (random() * (last-first+1)). The data set size is specified on command-line (handle the case when no argument is available). The programs will be invoked as: ./qsortm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
