Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   C (http://www.domainnameforum.org/forumdisplay.php?f=124)
-   -   binary search vs ternary search (http://www.domainnameforum.org/showthread.php?t=121729)

C++ 09-03-2010 09:30 AM

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??


All times are GMT -4. The time now is 01:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.