English 字幕

← Planar Graphs - Intro to Algorithms

埋め込みコードを取得する
3言語

Showing Revision 2 created 05/25/2016 by Udacity Robot.

  1. Another category of graphs that are very important and come up a lot are planar graphs.
  2. These are graphs that can be drawn in the plane on a flat piece of paper
  3. so that the edges don't cross.
  4. Here's an example of a planar graph.
  5. We've got five nodes and five edges.
  6. You see the way I drew it here. This node here and this node needed to be connected.
  7. I just drew a nice, little curvy line without crossing anything else.
  8. This is a planar graph. It still would be a planar graph even if I drew it with a crossing in it,
  9. because the issue is that there is some way to do it so that the edges don't cross.
  10. Now, in this particular example, we've got five nodes and five edges,
  11. but what we're interested in is what is the relationship in general between the number
  12. of nodes in a planar graph and the number of edges.
  13. This is more complicated example than any of the ones we looked at before in this unit.
  14. There is some kind of a relationship, and there are constraints
  15. by virtue of the fact that the graph is drawn in the plane.
  16. Let's take a look at that. Let's think about adding some edges here.
  17. We can add that edge. We can add this edge. We can add this edge.
  18. We can add this edge, and are there any more edges we can add
  19. while still being able to draw it in a plane? It doesn't look that way, right?
  20. This node is connected to all the other nodes. This one is done.
  21. This node is connected to three other nodes, but it can't reach this one.
  22. It seems like it's sort of all blocked out. That's going to be true in general.
  23. There's going to be some graphs that can't be drawn as a planar graph.
  24. If we add this edge between this node and this node, the resulting graph is no longer planar.
  25. How many edges do we get here all told?
  26. We've got one, two, three, four, five, six, seven, eight, nine.
  27. In this example, the number of edges seems to need to be less than or equal to 9.