Em Andamento

Load and Save an AVLTree from and to a file

Hello GAF-developers,

I am using a AVL Tree data structure to store text information.

The tree has the following structure:

typedef struct {

gAVLNode *top;

long count;

gAVLKey (*getkey)(const void *item);

gAVLCompare cmp;

} gAVLTree;

typedef struct _gAVLNode {

gAVLKey key;

long depth;

void *item; // word

struct Vector *v; // to each node is a list attached

struct _gAVLNode *parent;

struct _gAVLNode *left;

struct _gAVLNode *right;

} gAVLNode;

struct Vector {

int pos;

int capacity;

char **array;

};

1) I am reading words from a text file and inserting them into the tree. Some meta data is generated and stored into the Vector.

Now I would like to save the complete tree to a (binary) file and load it from there again.

2) In parallel to the Tree I am using a hashtable. I would like to save this to a file, too. And of course load it again into memory. Would be great if this could be part of the task as well.

The complete working C source code is provided together with a small introduction how to use it.

Its a pure shell command tool that was developed with gcc on a MacBook.

Habilidades: Programação C, Linux

Ver mais: vector vector int, vector int int, vector int, use of tree data structure, tree of data structure, tree node, tree in data structure using c, tree in data structure, tree data structure in c, tree data structure c, n-tree data structure, n tree data structure, node of a tree, node in tree, node data structure, list in data structure, list data structure, linux developers, key data structure, int v, introduction to tree, introduction to data structure in c, introduction to data structure, introduction to binary, introduction of data structure

Acerca do Empregador:
( 11 comentários ) Zürich, Switzerland

ID do Projeto: #555260

Premiar a:

ancosys

Hi, Please check pm. Thanks.

$105 USD em 3 dias
(50 Avaliações)
5.0

9 freelancers estão ofertando em média $72 para este trabalho

rakib062

Hello sir, I have over 3 years of experience in programming in several languages.I did similar job in my data structure and algorithm courses using VC++.It is very easy to write it in pure ANSI c [url removed, login to view] for y Mais

$45 USD in 2 dias
(10 Comentários)
4.0
pitaji

Please see the PMB.

$45 USD in 2 dias
(2 Comentários)
3.8
sarita81

Dear Sir, I can do it for you. Please check PMB.

$80 USD in 3 dias
(1 Comentário)
3.0
vishumalka

I can do this in C. I have more than 4+ years of C exp.

$120 USD in 5 dias
(5 Comentários)
1.9
QuinnKirwan

This appears to be an ANSI C program, I'm an expert at ANSI C programming on UNIX systems (Mac included). I can get started on this project ASAP. As soon as I receive the source code, I can perform everything you requi Mais

$100 USD in 5 dias
(0 Comentários)
0.0
pbq

Please check PM.

$50 USD in 2 dias
(0 Comentários)
0.0
abhisheksamanta

Hi there, I come with a 5 years of experience in C/C++. So I am really confidant in completing this project successfully with very high quality and within time.

$50 USD in 2 dias
(0 Comentários)
0.0
ShanyKhan

i can do this in 5 days.

$50 USD in 5 dias
(0 Comentários)
0.0