Examveda

What is the main advantage of using ternary search over binary search?

A. It works on unsorted arrays.

B. It uses less memory.

C. It is easier to implement.

D. It divides the array into three parts, potentially reducing the search time.

Answer: Option D


This Question Belongs to Data Structure >> Searching Algorithms

Join The Discussion

Related Questions on Searching Algorithms