rename to counting sort

This commit is contained in:
2018-11-20 12:16:29 -03:00
parent 1094451880
commit 02ea6050e9
6 changed files with 18 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ CFLAGS=-Wall -I../src/include -DDEBUG -g
SRC=test.c
OBJ=$(SRC:.c=.o)
OBJ+=../src/random.o ../src/bubble_sort.o ../src/count_sort.o ../src/quick_sort.o ../src/merge_sort.o ../src/bitonic_sort.o ../src/selection_sort.o
OBJ+=../src/random.o ../src/bubble_sort.o ../src/counting_sort.o ../src/quick_sort.o ../src/merge_sort.o ../src/bitonic_sort.o ../src/selection_sort.o
all: test

View File

@@ -19,7 +19,7 @@
#include <unistd.h>
#include "random.h"
#include "bubble_sort.h"
#include "count_sort.h"
#include "counting_sort.h"
#include "selection_sort.h"
#include "bitonic_sort.h"
#include "merge_sort.h"
@@ -124,10 +124,10 @@ int main(int argc, char **argv) {
passed++;
}
// Test count sort
// Test counting sort
pass = 1;
memcpy(test_array, test_case, sizeof(int) * n);
fprintf(stdout, "\tcount sort: ");
fprintf(stdout, "\tcounting sort: ");
fflush(stdout);
count_sort(test_array, n);
for (i = 0; i < n; i++) {