-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharvoreB.h
27 lines (23 loc) · 829 Bytes
/
arvoreB.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <stdlib.h>
#define MAX 3
#define MIN 2
typedef struct no_arvoreB
{
int valor[MAX + 1];
int count;
struct no_arvoreB *prox[MAX + 1];
} NoArvoreB;
NoArvoreB *raiz;
NoArvoreB *criarNo(int val, NoArvoreB *child);
void InserirNo(int val, int pos, NoArvoreB *node, NoArvoreB *child);
void DividirNo(int val, int *pval, int pos, NoArvoreB *node, NoArvoreB *child, NoArvoreB **newNode);
int AtribuirValor(int val, int *pval, NoArvoreB *node, NoArvoreB **child);
void Inserir(int val);
void Procurar(int val, int *pos, NoArvoreB *myNode);
void traversal(NoArvoreB *myNode);
void copySuccessor(NoArvoreB *myNode, int pos);
void rightShift(NoArvoreB *myNode, int pos);
void leftShift(NoArvoreB *myNode, int pos);
void mergeNodes(NoArvoreB *myNode, int pos);
void adjustNode(NoArvoreB *myNode, int pos);