zoukankan      html  css  js  c++  java
  • Graph Theory

    Some Concepts

    Eulerian Graphs

    • Eulerian graph: If it has a closed trail that tranverses every edge once and once only.
       There may be more than one such trail, each of which is called Eulerian trail or Eulerian circuit.

    Theorem: A connected graph is Eulerian if and only if the every node in the graph has an even degree.

    Theorem: A connected digraph is directed Eulerian if and only if every node satifies d_in = d_out.

    Hamiltonian Graphs

    • Hamiltonian graph: If it has a closed trail that tranverses every node once and once only.

    Theorem: Let G be a simple graph with N (>=3) nodes. If, for every pair of non-adjacent node v and u, their degrees always satify k(v)+k(u)>=N, then G is Hamiltonian.

    Theorem: Let G be a strongly connected digraph with N nodes. If all nodes satify both d_in >= N/2 and d_out >= N/2, then G is directed Hamiltonian.


    Some Problems

    Solve the Shortest Path Length Problem

    Dijkstra's Algorithm: Moving from A toward L and associating each intermediate node V with a number l(V) that is equal to the shortest path length from A to V.

    Chinese Postman Problem

    • The problem is for a postman to deliver letters in such a way that he passes every street at least once and finally returns to the starting point (the post office), traversing a shortest possible total path-length.
    • Ideas :
      To have a solution, the graph must be Eulerian.
      To make the graph be Eulerian, some edges need to be added to nodes with odd degrees.
      The postman must traverse on every added edge (otherwise, they do not need to be added).
      The choice with the least total length of added edges provides an optimal solution.

    Maxium Flows

    • Ford-Fukerson Algorithm
  • 相关阅读:
    php启用zlib压缩文件
    理解MySQL——架构与概念
    二级域名session 共享方案
    SessionID的本质
    PHP核心技术笔记(1):面向对象的核心概念
    改掉这些坏习惯,让你从php菜鸟变php高手
    理解MySQL——索引与优化
    [转]步步教你如何修改OS/400缺省的登陆画面
    [转]Delphi中的线程类
    [转]MSSQL重复记录处理
  • 原文地址:https://www.cnblogs.com/liuxin0430/p/11748438.html
Copyright © 2011-2022 走看看