This file contains hidden or 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
| import os | |
| grafo = {'a': [('p',4), ('j',15), ('b',1)], | |
| 'b': [('a',1), ('d',2), ('e',2), ('c',2)], | |
| 'j': [('a',15),('c',6)], | |
| 'p': [('a',4),('d',8)], | |
| 'd': [('b',2), ('g',3),('p',8)], | |
| 'e': [('b',2), ('g',9), ('f',5), ('c',2),('h',4)], | |
| 'c': [('b',2), ('e',2), ('f',5), ('i',20),('j',6)], | |
| 'g': [('d',3), ('e',9), ('h',1)], |
This file contains hidden or 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
| #Autor: Luis García | |
| #Carrera: Ingeniería en Computación | |
| import os | |
| class node(): | |
| def __init__(self, dato): | |
| self.left = None | |
| self.right = None | |
| self.dato = dato |
This file contains hidden or 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
| #AUTOR: Luis García | |
| #CARRERA: Ingeniería en Computación | |
| import os | |
| #DEFINIENDO EL GRAFO MEDIANTE UN DICCIONARIO DE PYTHON: | |
| #PARA MEJOR COMPRENSION EL VALOR 'a': [('p',4), ('j',15), ('b',1)], | |
| #INDICA QUE EL VERTICE 'a' ES ADYACENTE CON 'P', CON 'J' Y CON 'b' | |
| #CADA UNO CON SU RESPECTIVO PESO, AUNQUE EL PESO PARA HACER RECCORRIDOS EN PROFUNDIDAD | |
| #NO ES NECESARIO, SE LO AGREGUE PARA MOSTRAR TAMBIÉN LA IMPLEMENTACIÓN DE UN GRAFO PONDERADO |
This file contains hidden or 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
| ///Autor: Luis García | |
| ///Carrera: Ingeniería en computación | |
| #include <iostream> | |
| #include <time.h> | |
| #include <cstdlib> | |
| using namespace std; | |
| int main() |
This file contains hidden or 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
| #AUTOR: Luis García | |
| #CARRERA: Ingeniería en Computación | |
| import os | |
| #DEFINIENDO EL GRAFO MEDIANTE UN DICCIONARIO DE PYTHON: | |
| #PARA MEJOR COMPRENSION EL VALOR 'a': [('p',4), ('j',15), ('b',1)], | |
| #INDICA QUE EL VERTICE 'a' ES ADYACENTE CON 'P', CON 'J' Y CON 'b' | |
| #CADA UNO CON SU RESPECTIVO PESO, AUNQUE EL PESO PARA HACER RECCORRIDOS EN PROFUNDIDAD | |
| #NO ES NECESARIO, SE LO AGREGUE PARA MOSTRAR TAMBIÉN LA IMPLEMENTACIÓN DE UN GRAFO PONDERADO |
This file contains hidden or 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
| #Autor: Luis García | |
| #Carrera: Ingeniería en Computación | |
| import os | |
| grafo = {} | |
| opc = 0 | |
| while opc != 3: | |
| os.system("cls") |
This file contains hidden or 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
| /* | |
| AUTOR: Luis García | |
| CARRERA: Ingeniería en Computación | |
| */ | |
| #include <cstdlib> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <windows.h> | |
| #include <string.h> |
This file contains hidden or 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
| #AUTOR: Luis García | |
| #CARRERA: Ingenieía en Computación | |
| #PROGRAMA: Pila en python 3 | |
| #Importando la biblioteca para el manejo de funciones del systema operativo | |
| import os | |
| #Definiendo una clase en Python 3 | |
| class Vuelo(): | |
| #Definiendo el constructor |