1. Suponga que el siguiente grafo representa a la web en una escala realmente diminuta.
. (2) <---> (1) ----> (3) <---> (4)
En esta estructura deberia haber un Componente fuertemente conexo (SCC). Otros como parte del componente "IN", "OUT", etc. Hay varias interpretaciones posibles para este grafo, construya todas las intepretaciones posibles y luego identifique la opcion correcta entre las siguientes.
a) 1 esta en el SCC y 2 en IN
b) 3 y 4 estan en el SCC
c) 3 esta en el SCC y 4 es un tentaculo
d) 2 esta en IN y 4 en OUT
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python3 | |
""" | |
1. Calcular el PageRank tematico para el siguiente grafo. | |
. (2) <---> (1) ----> (3) <---> (4) | |
Asumir que los nodos que representan el tema de interes son el 1 y el 2 y que el peso del nodo 1 es el doble del tema 2. Usar b=0.7. Y luego identificar la opcion correcta entre las siguientes: | |
a) TSPR(1) = .2455 | |
b) TSPR(4) = .6680 | |
c) TSPR(1) = .3576 |
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
#include "DirectoryException.h" | |
DirectoryException::DirectoryException(const std::string& what_arg) | |
: std::logic_error(what_arg) { | |
} |
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
/* | |
Implemente una rutina (en Windows o Linux) que dibuje un 贸valo que ocupe toda la ventana. | |
*/ | |
#include <gtkmm/drawingarea.h> | |
#include <gtkmm/application.h> | |
#include <gtkmm/window.h> | |
#include <cmath> | |
class Ovalo : public Gtk::DrawingArea { |
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
/* | |
* Ejercicio [5] final 12/12/06 | |
* Escribir un algoritmo ANSI C que, sin crear archivos intermedios | |
* altere el archivo a.txt reemplazando la secuencia '//' por '*' | |
* Excepto si se encuentra entre parentesis | |
*/ | |
/* | |
* Compilar con gcc -ansi -std=gnu99 -o prueba inplace-acortar.c | |
*/ |
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);
int pthread_join(pthread_t thread, void **retval);
int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr);
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 "./polyfills"; | |
import "./rxjs-operators"; | |
import { enableProdMode } from "@angular/core"; | |
import { platformBrowser } from "@angular/platform-browser"; | |
import { MainModuleNgFactory } from "./components/main.aot.ngfactory"; // Ignore error | |
if ((<any>module)["hot"]) { | |
(<any>module)["hot"].accept(); | |
(<any>module)["hot"].dispose(() => { platform.destroy(); }); |
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
protected override void Up(MigrationBuilder migrationBuilder) | |
{ | |
migrationBuilder.CreateTable( | |
name: "Countries", | |
columns: table => new | |
{ | |
Name = table.Column<string>(nullable: false), | |
Population = table.Column<int>(nullable: false), | |
}, | |
constraints: table => |
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
protected override void Up(MigrationBuilder migrationBuilder) | |
{ | |
migrationBuilder.CreateTable( | |
name: "Countries", | |
columns: table => new | |
{ | |
Name = table.Column<string>(nullable: false), | |
Population = table.Column<int>(nullable: false), | |
}, | |
constraints: table => |