C Program for various searching method
02:29output :>
1)Linear Search
2)Binary Search
3)Fibonacci Search
4)Index Sequential Search
5)Quit
Enter Your Choice : 1
Enter No. of elements : 4
Enter a list of 4 elements : 45 68 23 67
Enter the the element to be searched : 23
Found at location= 2
1)Linear Search
2)Binary Search
3)Fibonacci Search
4)Index Sequential Search
5)Quit
Enter Your Choice : 2
Enter No. of elements : 6
Enter a sorted list of 6 elements : 12 23 34 45 56 67
Enter the the element to be searched : 67
Found at location= 5
1)Linear Search
2)Binary Search
3)Fibonacci Search
4)Index Sequential Search
5)Quit
Enter Your Choice : 3
Enter No. of elements : 5
Enter a sorted list of 5 elements : 12 56 78 89 23
Enter the the element to be searched : 78
Found at location= 2
1)Linear Search
2)Binary Search
3)Fibonacci Search
4)Index Sequential Search
5)Quit
Enter Your Choice : 4
Enter No. of elements : 8
Enter a list of 8 elements : 12 23 67 78 89 45 67 90
Enter the the element to be searched : 90
Found at location= 7
1)Linear Search
2)Binary Search
3)Fibonacci Search
4)Index Sequential Search
5)Quit
Enter Your Choice : 5
0 comments: