The following graphs shows the time taken to execute an algorithm using ruby language with an array size of 400. Graph is plotted for 5 consecutive executions. Both graphs plot the same values except that one is kind of monochrome and the other one is in color mode. The values for plotting the above graphs …