Which of the following recurrence relations corresponds to the expression of time complexity for the mergesort algorithm?
a)T(N) = T(N/2) + O(N)
b)T(N) = T(2) + O(N)
c)T(N) = T(N/2) + O(1)
d)T(N) = 2 T(N/2) + O(N)
Answer
d)T(N) = 2 T(N/2) + O(N)

Respuesta :

d)T(N) = 2 T(N/2) + O(N) is recurrence relations corresponds to the expression of time complexity for the mergesort algorithm.

What are algorithms?

In mathematics and computer science, an algorithm (/ˈælɡərɪðəm/ (listen)) is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing calculations and data processing. More advanced algorithms can perform automated deductions (referred to as automated reasoning) and use mathematical and logical tests to divert the code execution through various routes (referred to as automated decision-making). Using human characteristics as descriptors of machines in metaphorical ways was already practiced by Alan Turing with terms such as "memory", "search" and "stimulus". In contrast, a heuristic is an approach to problem solving that may not be fully specified or may not guarantee correct or optimal results, especially in problem domains where there is no well-defined correct or optimal result.

To know more about algorithms, visit:

https://brainly.com/question/28260163

#SPJ4