Template For DSA Lab 4 - 0021
Template For DSA Lab 4 - 0021
LABORATORY EXERCISE 4
Objective:
Follow instructions to implement and compare linear and binary search algorithms
on arrays and explore their efficiencies.
Lab Tasks
Task 01(a) Objective:
Source Code:
Output/Result:
Source Code:
Output/Result:
Source Code:
Output/Result:
Source Code:
Output/Result:
Lab 04 Conclusion:
We tested two searching methods: Linear Search and Binary Search. Binary Search
works best for large datasets, while Linear Search is slower for bigger lists.
Overall, Binary Search is usually the most efficient for the given tasks.