One or two years ago while writing a C program, I need  Java’s arraylist like generic data-structure for C and wrote the code below. Hope that it will be useful for someone:

autoexpandvector.c’s code is as above and you can get the header file,  grab the test code and compilation script from the github repository.

Coming soon: If I had some time, I’m going to put my test implementations in C of k-Means(sequantial, OpenMP, PThreads and CUDA versions) , kNN(sequantial, OpenMP and PThreads versions) , DBSCAN (sequantial, OpenMP, PThreads) and ID3(only sequential) to this blog.

Related Posts: