1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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