Ask Question
5 May, 01:11

JAVA What is the running time required for repeatedly splitting a problem into two equally sized halves, assuming no additional work needs to be done?

O (1)

O (log10N)

O (log2N)

O (log2N)

O (N)

O (N log N)

O (N2)

O (N3)

O (Nk)

O (2N)

O (N!)

+3
Answers (1)
  1. 5 May, 03:31
    0
    O (log2N)

    Explanation:

    Whenever there is repeated division or split of a problem in two equally sized halves an there is no additional work means there no work other than splitting the problem the time complexity is O (log2N).

    You can take the example of binary search. It is an algorithm based on divide and Conquer. It divides the array in two equal halves on each iteration and it's worst case time complexity is O (logN).
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “JAVA What is the running time required for repeatedly splitting a problem into two equally sized halves, assuming no additional work needs ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers