Skip to content

Category: Estrutura de Dados

B Tree, Data Structure

Hello This is a implementation of B-Tree. This program read a list of ZipCodes and insert then in a Tree, and it should calculate the…

Continue reading B Tree, Data Structure

Linked List, Data Structure

Hello,

What is a Linked List? Linked-list is a list that each element has a pointer to the next one.

The professor once again send us an enunciation to solve and it is too big. And I will not translate it. Inside the problem it have a Linked list.

Problem using linked-list..

Regards,
Matheus

PS: You can see the enunciation in portuguese and then use google translate to translate it

Continue reading Linked List, Data Structure

List, with pointers, Data Structure

Hello,

Today I will introduce you to a list using pointers. This list doesn't have limit of elements (if you have infinite memory). Again the enunciation is too big, so take the file, read it and learn.

Stack with pointers implementation

Regards,
Matheus

PS: You can see the enunciation in portuguese and then use google translate to translate it
Continue reading List, with pointers, Data Structure

Stack, using pointer, Data Structure.

This is a implementation of a Stack using pointers. The basic thing is the structure of tPilha is

[code lang="C"]
constant MAXPILHA = 100;
tipo tPilha {
inteiro dados[MAXPILHA];
inteiro *topo;
}; [/code]

Where *topo is a pointer to the first element in the stack. When you`re going to add a new one you verify if the stack is full, if it ins`t you put the data in a position in the stack and change the *topo. When removing, you decrement one in pointer *topo. Then it will reference the element that was there before.

(I had an enunciation but it was too big to translate)

stack with pointers implementation!

Regards,
Matheus

PS: You can see the enunciation in portuguese and then use google translate to translate it
Continue reading Stack, using pointer, Data Structure.

List, Data Structure

Good afternoon, Like I said before I'm having Data Structure class. And today I will introduce you the List concept. A linear data structure. There…

Continue reading List, Data Structure

Queue, Data Structure

Good Night, What is Queue? Queue is a data structure used a lot in computers, and it is based on the principle FIFO (First in,…

Continue reading Queue, Data Structure

Stack, Data Structure.

Good Night, What is Stack? Stack is a data structure of abstract data used a lot in computers, and it is based on the principle…

Continue reading Stack, Data Structure.

Data Structure, C

Hello, This semester I have data structure class, my professor Aldo Von Wangenheim, decided to use C in the first part of the class, and…

Continue reading Data Structure, C