Lab 04 DSA
Lab 04 DSA
Problem 1. Write a program that stores an array of 1000 random integers between 1
and 10000. The program should include the following functions:
a) Input and output data of the array.
b) Sort the array by using all sorting algorithms that you have studied.
c) Compare the execution time of the sorting algorithms and write the result to a
file named “SortingTime.txt”.
d) Search for a given element x from the array using linear search technique.
e) Search for a given element x from the array using binary search technique