PICL Assi 6 7 _Write a C Program to Write a C program for binary serach and matrix operations
PICL Assi 6 7 _Write a C Program to Write a C program for binary serach and matrix operations
Faculty of Engineering
CSE- Academic Year 2024-25
Data Structures – Lab Batch 2023-27
Lab Assignment No:- 6
Title of Assignment: Write a C program of binary search for a user-given element in a set
of ‘n’ numbers.
Theory Questions: ● What is the time complexity of the binary search algorithm?
● How does binary search differ from linear search in terms of
efficiency?
● Can binary search be applied to an unsorted array? Why or why
not?
Practice questions a. Implement a modified version of the binary search that returns the
count of occurrences of the target element in the array.