diff --git a/slides/cours_17.md b/slides/cours_17.md
index 54b5767e70e4e365529fc614492eea0c6739d50e..08564a1651cea79e581232c86890fec5076ede32 100644
--- a/slides/cours_17.md
+++ b/slides/cours_17.md
@@ -89,10 +89,10 @@ rien tamisage(tab, i)
     ```python
     entier ind_max(tab, i, g, d)
         ind_max = i
-        si tab[ind_max] < tab[l]
-            ind_max = l
-        si tab[ind_mx] < tab[r]
-            ind_max = r
+        si tab[ind_max] < tab[g] && size(tab) > g
+            ind_max = g
+        si tab[ind_mx] < tab[d] && size(tab) > d
+            ind_max = d
         retourne ind_max
 
     entier gauche(i)
@@ -541,7 +541,7 @@ graph TD;
 
 . . .
 
-* `hd > hg`
+* `hd < hg`
 
 ```{.mermaid format=pdf width=400 loc=figs/}
 graph TD;