Engenheiro

35915 palavras 144 páginas
VI

Graph Algorithms

Introduction
Graph problems pervade computer science, and algorithms for working with them are fundamental to the field. Hundreds of interesting computational problems are couched in terms of graphs. In this part, we touch on a few of the more significant ones. Chapter 22 shows how we can represent a graph in a computer and then discusses algorithms based on searching a graph using either breadth-first search or depthfirst search. The chapter gives two applications of depth-first search: topologically sorting a directed acyclic graph and decomposing a directed graph into its strongly connected components. Chapter 23 describes how to compute a minimum-weight spanning tree of a graph: the least-weight way of connecting all of the vertices together when each edge has an associated weight. The algorithms for computing minimum spanning trees serve as good examples of greedy algorithms (see Chapter 16). Chapters 24 and 25 consider how to compute shortest paths between vertices when each edge has an associated length or “weight.” Chapter 24 shows how to find shortest paths from a given source vertex to all other vertices, and Chapter 25 examines methods to compute shortest paths between every pair of vertices. Finally, Chapter 26 shows how to compute a maximum flow of material in a flow network, which is a directed graph having a specified source vertex of material, a specified sink vertex, and specified capacities for the amount of material that can traverse each directed edge. This general problem arises in many forms, and a good algorithm for computing maximum flows can help solve a variety of related problems efficiently.

588

Part VI Graph Algorithms

When we characterize the running time of a graph algorithm on a given graph G D .V; E/, we usually measure the size of the input in terms of the number of vertices jV j and the number of edges jEj of the graph. That is, we describe the size of the input with two parameters, not just one. We adopt

Relacionados

  • Engenheiros
    2035 palavras | 9 páginas
  • Engenheiro
    569 palavras | 3 páginas
  • O que é um engenheiro
    10807 palavras | 44 páginas
  • O que é Engenheiro
    956 palavras | 4 páginas
  • Engenheiro
    10022 palavras | 41 páginas
  • engenheiro
    2646 palavras | 11 páginas
  • Engenheiro
    1506 palavras | 7 páginas
  • O que é um engenheiro
    531 palavras | 3 páginas
  • Engenheiro
    280 palavras | 2 páginas
  • Engenheiro
    582 palavras | 3 páginas