# 53 em um sistema operacional um processo ter? sua

This preview shows pages 33–35. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
8 Menor Caminho entre Vértices Definição : Um grafo com comprimentos (ou pesos) associa a cada aresta um comprimento que é um número real positivo. O comprimento de um caminho é a soma dos comprimentos de suas arestas. Problema : Calcular o menor caminho de um vértice v a todos os outros de um grafo dirigido. A idéia é considerar os vértices do grafo na ordem dos comprimentos de seus menores caminhos de v. Primeiro, tomamos todas as arestas saindo de v. Seja (v, x) a aresta de menor comprimento entre elas. Então o menor caminho entre v e x é a aresta (v, x) por que qualquer outro caminho envolveria outra aresta (v, w), w x que sozinha já possui comprimento maior que (v, x). v 2 x 3 6 5 Se quisermos encontrar o vértice y que é o segundo mais perto de v, devemos considerar apenas as arestas (v, y) e os caminhos (v, x), (x, y).
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business â€˜17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. Itâ€™s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania â€˜17, Course Hero Intern

• The ability to access any universityâ€™s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLAâ€™s materials to help me move forward and get everything together on time.

Jill Tulane University â€˜16, Course Hero Intern