• 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
  • 相关阅读:
    REUSE_ALV_GRID_DISPLAY_LVC I_CALLBACK_HTML_TOP_OF_PAGE
    查找数组中最大值java
    jvm 调优
    jvm 内存
    树形遍历文件夹
    程序创建一个ArrayList,添加1到10的10个随机数,删除大于5的数 java
    字符串反序排序 并带有空格输出 java
    摆动排序
    免密登陆
    springboot UEditor集成
  • 原文地址:https://www.cnblogs.com/liuxin0430/p/11748438.html
Copyright © 2020-2023  润新知