View ArvoreBinariaApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Criado por: profa. Divani Barbosa Gavinier | |
Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
divanibarbosa@gmail.com | |
*/ | |
import java.io.*; | |
import java.util.*; | |
class No { | |
public long item; | |
public No dir; |
View Arvore.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Criado por: profa. Divani Barbosa Gavinier | |
# Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
# divanibarbosa@gmail.com | |
class No: | |
def __init__(self, key, dir, esq): | |
self.item = key | |
self.dir = dir | |
self.esq = esq |
View Heap.cp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HeapSort em C++ usando Classe | |
// Criado por: profa. Divani Barbosa Gavinier | |
// Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
// divanibarbosa@gmail.com | |
#include <iostream> | |
using namespace std; | |
class Heap { | |
private: int *vHeap, tam_max, n; | |
View AtivMatVet.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Criado por: profa. Divani Barbosa Gavinier | |
// Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
// divanibarbosa@gmail.com | |
/* | |
Desenvolver um programa em C para os seguinte problema: | |
Ler do usuário os elementos de uma matriz A de valores inteiros distintos de dimensão nxn (n<=10). | |
Gerar dois vetores V e W, formados respectivamente pela linha de A correspondente ao maior elemento e pela coluna de A correspondente ao menor elemento . | |
Escrever a matriz A e os vetores V e W. | |
*/ |
View Registro.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Criado por: profa. Divani Barbosa Gavinier | |
// Currículo Lattes: http://lattes.cnpq.br/8503400830635447 | |
// divanibarbosa@gmail.com | |
/* Uma empresa de informática comercializa um programa para gerenciar o | |
cadastro de informações dos funcionários das empresas em geral. Uma determinada empresa, | |
com 8 departamentos, adquiriram o programa e, ao executar o programa pela primeira vez, | |
informado o número de funcionários e as informações de cada um deles. Como informações | |
são nome (vetor de caracteres), idade (inteiro), sexo (caractere), tempo de casa em anos (inteiro) | |
e salário (real). Escreva um programa em linguagem C++ que realiza as seguintes operações: |
View Adivinha.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Criado por: profa. Divani Barbosa Gavinier | |
// Currículo Lattes: http://lattes.cnpq.br/8503400830635447 | |
// divanibarbosa@gmail.com | |
#include <iostream> | |
#include <stdlib.h> | |
#include <time.h> | |
using namespace std; | |
int GeraNum(int); | |
int AdivinhaNum(); |
View OrdenaTodosTempo.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Criado por: profa. Divani Barbosa Gavinier | |
// Currículo Lattes: http://lattes.cnpq.br/8503400830635447 | |
// divanibarbosa@gmail.com | |
/* Crie um código em linguagem C++ que compare o tempo gasto pelo computador para ordenar um vetor de tamanho lido pelo usuário. | |
Use os métodos simples visto em aula e considere: | |
Atribuição de valores aleatórios entre zero e quinhentos ao vetor. | |
Crie um cópia do vetor gerado aleatoriamente e ordene a cópia. | |
Depois de ordenar a cópia, atribua os valores do vetor original a mesma, para que possa ordenar novamente através de outro método de ordenação e a comparação seja eficaz. | |
*/ |
View PilhaExpressoes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Criado por: profa. Divani Barbosa Gavinier | |
Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
divanibarbosa@gmail.com | |
*/ | |
import java.io.*; | |
import java.lang.*; | |
class No { | |
public int item; | |
public No ant; | |
} |
View ArvoreBinApp.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arvore Binária em C++ usando Classe | |
// Criado por: profa. Divani Barbosa Gavinier | |
// Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
// divanibarbosa@gmail.com | |
//////////////////////////////////////////////// | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; | |
//////////////////////////////////////////////// | |
struct NO { |
View HashLinearColisao.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Criado por: profa. Divani Barbosa Gavinier | |
# Curriculo Lattes: http://lattes.cnpq.br/8503400830635447 | |
# divanibarbosa@gmail.com | |
class HashLinearColisao: | |
def __init__(self,tam): | |
self.tab = {} | |
self.tam_max = tam |
NewerOlder