repositories
/
Algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add information on the pivot choice for quick sort.
[Algorithmic_C.git]
/
TP2
/
exo3
/
exo3.c
diff --git
a/TP2/exo3/exo3.c
b/TP2/exo3/exo3.c
index 2970b00318fab32b8dad73125dcbdfca62fdd698..f070f1f493a789901b1710074a6764a2e1e9fee3 100644
(file)
--- 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];