View Single Post
  #1  
Old 09-03-2010, 09:30 AM
C++ C++ is offline
Senior Member
 
Join Date: Jun 2009
Posts: 18,248
Default binary search vs ternary search

For an array of n int variables, When does binary search perform better than ternary search?? Also, reverse case, ie when does ternary search perform better than binary search? Why is binary search a more preferred method of searching for integers entered in an array??
__________________
C++
domain name forum
Reply With Quote