Professional Documents
Culture Documents
Problem 1
Show the comparison of runtime of linear search and binary search using line chart and table.
Execute both algorithms 6 times on same data (use random integer generators), where input
data size are: 50000, 100000, 150000, 200000, 250000 and 300000. Please report worst case
runtimes so that the search item is not found in the input data.
Problem 2
Show the comparison of runtime of bubble sort and merge sort using line chart and table.
Execute both algorithms 6 times on same data (use random integer generators), where data
size are: 50000, 100000, 150000, 200000, 250000 and 300000. In each execution, sort the data
in ascending order.
You can use any programming language, IDE and library. You can use any implementation of
these algorithms available in the Internet. Dont run them in server or cloud platform. Execute
them in your personal computer.