Data structure--diagram (bottom)--topological sorting

Source: Internet
Author: User
Topological sorting

Mind mapping is also a kind of graph

Topological order : if there is a forward path from V to W in the diagram, V must precede w.  The vertex sort that satisfies this condition becomes a topological order. V-"W

The process of obtaining a topological order is the topological ordering

AoV If there is a reasonable topological order, it must be a directed acyclic graph (Directed acyclic graph, or dag).

The first row does not have a pre-course class. Then erase the vertices and edges, each output which vertex, without the predecessor vertex, the output (the degree of 0 vertex).

The final topological sequence produces a

Dag has a directed acyclic graph.

Application of topological sequencing AOE (Activity on edge) network each side represents a process, a very large project,

  

Each side represents one thing, each of which is formed in the order of interdependence, and how much time is spent on each process.

There is a virtual edge, this imaginary edge of the time is 0,aoe network,

How long is the whole duration?

Which groups have maneuver time? Those groups are a day can not be delayed, delayed time will be postponed, which group time is delayed, delayed time will not be postponed. The time is not to be dead or to have maneuver time.

What is the critical path, those groups can not delay the day, once delayed, will be postponed, is the key path

Data structure--diagram (bottom)--topological sorting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.