Question: Write a pseudocode algorithm that searches for an item x in a sorted list of n items by dividing it into three sublists of almost
Write a pseudocode algorithm that searches for an item x in a sorted list of n items by dividing it into three sublists of almost n/3 items. This algorthm finds the sublist that might contain the given item and divides it into three smaller sublists of almost equal size. The algorithm repeats this process until it finds the item or concludes that the item is not in the list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
