binary search vs ternary search

Discussion in 'C' started by suhrud.l, Sep 3, 2010.

  1. suhrud.l

    suhrud.l New Member

    Joined:
    Sep 3, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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??
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice