La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

Algoritmo de Floyd-Warshall

Presentaciones similares


Presentación del tema: "Algoritmo de Floyd-Warshall"— Transcripción de la presentación:

1 Algoritmo de Floyd-Warshall
REPÚBLICA BOLIVARIANA DE VENEZUELA. MINISTERIO DEL PODER POPULAR PARA LA EDUCACIÓN UNIVERSIDAD "GRAN MARISCAL DE AYACUCHO" NUCLEO - EL TIGRE INGENIERIA EN MANTENIMIENTO INDUSTRIAL Algoritmo de Floyd-Warshall PROF INTEGRANTES: Tibayde García Milagro Salazar C.I Leonardo Ruiz C.I Rosely Jiménez C.I Jorge Milano C.I Lirvic Rojas C.I EL TIGRE; Enero De Eglismar Alvarado C.I Darwin Lira C.I

2 Conceptos Básicos Algoritmo Grafo

3 Algoritmo de Floyd-Marshall (todos los caminos mínimos)

4 Comportamiento con ciclo
Negativo y aplicación Diseño de ruta de Transporte Diseño de Circuitos Aproximación al problema del viajante de comercio

5 Ejemplo *SEA UN CONJUNTO DE CIUIDADES. *UNA CIUDAD ORIGEN “1”.
*UN CONJUNTO DE ARISTAS QUE UNE LAS CIUDADES, CON LAS DISTANCIAS ASOCIADAS. *PROBLEMA DEL VIAJANTE: RECORRER TODAS LAS CIUDADES, TOMANDO EL CAMINO MÁS CORTO.

6 Solución

7 1 2 3 4 5 1 2 3 4 5 ___ ² ³ ⁴ ⁵ ¹ Matriz de Distancias ___ 10 60 20 40
70 30 1 2 3 4 5 ___ Matriz de Recorrido

8 CONTINUAMOS CON LAS ITERACIONES

9 Iteración Nº 1 1 2 3 4 5 ___ 10 60 20 40 70 30 1 2 3 4 5 ___

10 Iteración Nº 2 1 2 3 4 5 ___ 10 60 20 40 70 30 120 1 2 3 4 5 ___

11 Iteración Nº 3 1 2 3 4 5 ___ 10 50 20 60 40 70 30 110 1 2 3 4 5 ___

12 Iteración Nº 4 1 2 3 4 5 ___ 10 50 20 60 40 70 110 30 1 2 3 4 5 ___

13 Iteración Nº 5 1 2 3 4 5 ___ 10 30 20 40 50 1 2 3 4 5 ___

14 Matriz de Recorrido Final
Matriz de Distancia Final 1 2 3 4 5 ___ 10 30 20 40 50 Matriz de Recorrido Final 1 2 3 4 5 ___ Matriz de Recorrido Final

15 Comprobando 1-2=10 1-3=30 1->4->3 1-4=20 1-5= 40 1->4->5
1-3= >4->3 1-4=20 1-5= >4->5 2-1=10 2-3= >4->3 2-4=20 2-5= >4->5 3-1= >4->1 3-2= >4->2 3-4=10 3-5=10 4-1=20 4-2=20 4-3=10 4-5=20 5-1= >4->1 5-2= >4->2 5-3= >4->3 5-4=30

16 GRACIAS POR SU ATENCIÓN


Descargar ppt "Algoritmo de Floyd-Warshall"

Presentaciones similares


Anuncios Google