logo

Crowdly

Browser

Add to Chrome

Voici une procédure récursive. Ne cherchez pas à savoir ce qu'elle fait : elle n...

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

Voici une procédure récursive. Ne cherchez pas à savoir ce qu'elle fait : elle ne fait rien de cohérent. Considérez qu'elle résout un problème qui porte sur un intervalle non vide [D, F] (D ≤ F) d'un tableau :

procedure P (↓ T : TTableau, ↓ D : entier, ↓ F : entier)

// ...

Début

Si ...    // Une ou plusieurs exceptions

...

...

Sinon  // Cas général

Si T [D] > T [D+1] 

P (T, D+1, F-1)

Sinon

P (T, D, F-2)

FSi

FSi

Fin

Compte tenu du cas général, sélectionnez les exceptions les plus probables.

0%
0%
0%
More questions like this

Want instant access to all verified answers on arche.univ-lorraine.fr?

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

Browser

Add to Chrome