LAB1 - Python
LAB1 - Python
Experiment # 1
Lab Instructor: Eng Kamal Al-homidi
Recursive and Iterative Binary Search
Objectives:
1. Determine the time complexity of the Recursive and Iterative Binary Search algorithms
2. Write a two Functions for Recursive and Iterative Binary search in python using the
next pseudo code
if index != -1:
print("Element found at index", index)
else:
print("Element not found in the array")
OutPut:
4. Write a full Program for Recursive Binary Search using the next pseudo code
in python