Describe a ternary search algorithm which searches an


Question: (a) Describe a ternary search algorithm, which searches an ordered list for a given element by successively dividing the list into thirds and determining in which third the element must lie.

(b) Show that the complexity of the algorithm found in (a) (in terms of comparisons) is 0(log 3 n).

Solution Preview :

Prepared by a verified Expert
Mathematics: Describe a ternary search algorithm which searches an
Reference No:- TGS02365401

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)