rename to counting sort
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user