Develop a searching algorithm that looks for a key in this


Problem

1. Write a probabilistic algorithm that determines whether an array of n elements has a majority element (the element that appears the most). Analyze your algorithm and show the results using order notation.

2. Suppose a very large sorted list is stored in external storage. Assuming that this list cannot be brought into internal memory, develop a searching algorithm that looks for a key in this list. What major factor(s) should be considered when an external search algorithm is developed? Define the major factor(s), analyze your algorithm, and show the results using order notation.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Develop a searching algorithm that looks for a key in this
Reference No:- TGS02638956

Expected delivery within 24 Hours