logo

Crowdly

Considérons l’algorithme de tri fusion suivant : def merge_sort (array) : ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Considérons l’algorithme de tri fusion suivant :

def merge_sort(array):

if len(array) <= 1

:

return

array

middle = len(array) //

2

left = merge_sort(array[:middle])

right = merge_sort(array[middle:])

return merge(left, right)

 Quelle est sa complexité temporelle dans le **pire cas** ?

 
More questions like this

Want instant access to all verified answers on moodle.esme.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!