最小生成树

How does it run?

  • Choose an arbitrary vertex and let
  • Choose a vertex closest to and add it into and record the corresponding edge
  • go on until all vertices are in
  • The recorded edges and constructs a Minimum Spanning Tree

Let be a weithted connected graph and has vertices.

socket in C

一些常用的函数:

c

int socket(int domain, int type, int protocol);

domain可选值:

Test

This is bold text, and this is emphasized text.

This is an inline equation:

This is a display equation:

python