Browse Source

missing counting changes

Chris Cromer 2 weeks ago
parent
commit
89cd51e84c
Signed by: Chris Cromer <chris@cromer.cl> GPG Key ID: 39CC813FF3C8708A
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      src/sort.c
  2. 1
    1
      test/test.c

+ 2
- 2
src/sort.c View File

@@ -353,8 +353,8 @@ int main (int argc, char **argv) {
353 353
 
354 354
 	// O((1/2) * n^2 - (1/2) * n)
355 355
 	if (counting) {
356
-		start_sort("Count sort corriendo... ", n);
357
-		count_sort(work_array, n);
356
+		start_sort("Counting sort corriendo... ", n);
357
+		counting_sort(work_array, n);
358 358
 		end_sort();
359 359
 	}
360 360
 

+ 1
- 1
test/test.c View File

@@ -129,7 +129,7 @@ int main(int argc, char **argv) {
129 129
 	memcpy(test_array, test_case, sizeof(int) * n);
130 130
 	fprintf(stdout, "\tcounting sort: ");
131 131
 	fflush(stdout);
132
-	count_sort(test_array, n);
132
+	counting_sort(test_array, n);
133 133
 	for (i = 0; i < n; i++) {
134 134
 		if (test_array[i] != qarray[i]) {
135 135
 			fprintf(stdout, "fail\n");

Loading…
Cancel
Save