Write pseudo 'Python' algorithm (recursive) for binary search. Apply your algorithm on the numbers stored in array from A[0] to A[19], 17, 23, 38, 45, 50, 57, 76, 90, 100 to search... Write pseudo 'Python' algorithm (recursive) for binary search. Apply your algorithm on the numbers stored in array from A[0] to A[19], 17, 23, 38, 45, 50, 57, 76, 90, 100 to search numbers 10 & 100. Explain the selection sort with algorithm sort the following: No using selection sort & show the content of array after every passes: [9, 7, 26, 17, 9, 45, 58, 90, 79, 100]. Explain quick sort algorithm with suitable example. What is time complexity of quick sort algorithm? Write a short note on sentinel search & index sequential search with suitable example. Sort the following numbers step by step using insertion sort: 55, 85, 11, 34, 5, 89, 67. Comment on time complexity of Insertion sort. Explain in brief any three searching techniques. What is its time complexity? Explain Fibonacci search algorithm with suitable example. What is its time complexity? Given numbers 29, 57, 47, 39, 36, 20, 55, 28, 31, 39. Sort using straight radix sort. When it is appropriate to use radix sort? Write time complexity. Explain the quick sort algorithm. Show the contents of array after each iteration of your algorithm start from following status of array: 27, 9, 57, 90, 45, 100, 79. Explain in brief the different searching techniques. What is the time complexity of each of them? Write an algorithm of selection sort and sort the following numbers using selection sort and show the contents of an array after every pass: [8, 1, 7, 6, 61, 93, 4, 8, 104, 15]. Write an algorithm of Bubble sort and sort the following numbers using selection sort and show the contents of an array after every pass: 25, 37, 12, 48, 57, 33. Sort the following numbers step by step using Quick sort: 7, 6, 10, 5, 9, 2, 1, 15. Comment on time complexity of Insertion sort. Consider following numbers, sort them using quick sort. Show all the passes to sort the value in ascending order 25, 37, 48, 72, 38, 121, 92, 86, 36. Given numbers 7, 10, 3, 15, 10, 3, 25, 67, 28, 84, 49, 84, 99, 100, 13, 16. Sort in descending order stepwise using radix sort? Write time Complexity.

Question image

Understand the Problem

The question is asking for a series of tasks related to algorithms, including writing pseudo algorithms for searching and sorting techniques, explaining different algorithms, and discussing their time complexities.

Answer

Binary search: -1 for 10; 9 for 100.

The recursive binary search will return -1 for 10 (not found) and 9 for 100 (found at index 9) using the specified array.

Answer for screen readers

The recursive binary search will return -1 for 10 (not found) and 9 for 100 (found at index 9) using the specified array.

More Information

Binary search algorithm is efficient for sorted arrays, reducing time complexity to O(log n).

Tips

Common mistake: Not ensuring the array is sorted, which can cause incorrect results.

Sources

AI-generated content may contain errors. Please verify critical information

Thank you for voting!
Use Quizgecko on...
Browser
Browser