From ab72462dfde9a7d678a04b849c087ea9f3c39943 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 3 Mar 2017 17:17:19 +0100 Subject: [PATCH 1/1] Add information on the pivot choice for quick sort. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP2/exo3/exo3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/TP2/exo3/exo3.c b/TP2/exo3/exo3.c index 2970b00..f070f1f 100644 --- a/TP2/exo3/exo3.c +++ b/TP2/exo3/exo3.c @@ -13,6 +13,7 @@ void AfficheTab(int T[], int n) { } void TriRapide(int T[], int n) { + // The optimal pivot choice is the median value in the tab int pivot = T[0]; int TP[n]; int TG[n]; -- 2.34.1