#include #include #include "rkdtree.h" #include "rkdnode.h" #define ELCOUNT 2000 #define ELDIM 4 int main() { unsigned int i, j; /* Create an rkdtree */ rkdtree_t *T = rkdtree_init(ELDIM); /* Generate keys to insert */ int **keys = malloc(sizeof(int*)*ELCOUNT); for(i=0;iroot->elem_count); /* Show rkdtree */ rkdtree_dump(T); /* Insert keys */ printf("Removing keys..."); for(i=0;iroot == NULL ) printf("yes (good)\n"); else { printf("no (bad)\n"); printf("Elem count : %u\n", T->root->elem_count); /* Show rkdtree */ rkdtree_dump(T); } /* Free keys */ for(i=0;i