Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
11 #define MAXELEMENTS 1000
23 void *elements[MAXELEMENTS];
26 int number_of_elements;
42 int add_item_label(
Dictionary *,
char label[],
void *);
48 int add_item_index(
Dictionary *,
int index,
void *);
void delete_bt(node **root, int ele)
deletion of a node from the tree if the node isn't present in the tree, it takes no action.
Definition: threaded_binary_trees.c:173
Definition: prime_factoriziation.c:25
Kyler Smith, 2017 Stack data structure implementation.
Definition: binary_search_tree.c:14
int data
stores the number
Definition: threaded_binary_trees.c:28
struct Node * rlink
link to right child
Definition: threaded_binary_trees.c:30
Node, the basic data structure of the tree.
Definition: threaded_binary_trees.c:27
void postorder_display(node *curr)
performs postorder traversal param[in] curr node pointer to the topmost node of the tree
Definition: threaded_binary_trees.c:143
int find(int *p, int x)
Find index of or value in an array.
Definition: union_find.c:17
struct Node node
Node, the basic data structure of the tree.
void search(node *root, int ele)
searches for the element
Definition: threaded_binary_trees.c:98
struct Node * llink
link to left child
Definition: threaded_binary_trees.c:29
void preorder_display(node *curr)
performs preorder traversal param[in] curr node pointer to the topmost node of the tree
Definition: threaded_binary_trees.c:157
#define max(a, b)
shorthand for maximum value
Definition: kohonen_som_topology.c:39
int main(int argc, char **argv)
the main function take one argument of type char* example : .
Definition: c_atoi_str_to_integer.c:72
void inorder_display(node *curr)
performs inorder traversal param[in] curr node pointer to the topmost node of the tree
Definition: threaded_binary_trees.c:129
node * create_node(int data)
creates a new node param[in] data value to be inserted
Definition: threaded_binary_trees.c:38
void insert_bt(node **root, int data)
inserts a node into the tree param[in,out] root pointer to node pointer to the topmost node of the tr...
Definition: threaded_binary_trees.c:51
int main()
main function
Definition: threaded_binary_trees.c:255