Summer Camp-Basic graph theory

Source: Internet
Author: User

5/37 Problem A HUST 1019 A Dangerous Trip
10/71 Problem B HUST 1631 Road System
Problem C Uvalive 3523 Knights of the Round Table
1/5 Problem D Uvalive 5135 Mining Your Own Business
1/1 Problem E Uvalive 4287 Proving equivalences
0/2 Problem F Gym 100216E Shortest Path
Problem G POJ 3177 Redundant Paths
Problem H POJ 1236 Network of schools
Problem I URAL 1752 Tree 2
5/5 Problem J POJ 1330 Nearest Common Ancestors
4/16 Problem K POJ 1470 Closest Common Ancestors

A

To shorten the shortest path by half.

Two different methods. 1. First, the shortest starting point, each side of the reverse and then seek the end of the. Then enumerate each edge binary to find out the answer. 2. Consider each point as two points, the original is divided into two layers, if a to B has a weight of the side of C, then A to B ' has a C/2 side, so that the shortest time to do is the answer. Note that the edge is an integer, but the answer may be a decimal, preferably the edge.

B

Bare minimum spanning tree.

C

Knights of the Round Table, classic questions, not yet done.

D

The miner at the bottom.

E

Equivalence proof, to a given graph, ask at least how many edges of the programming strong connected graph.

The strongly connected components are then shrunk to a point, since they are already equal to each other. Then, according to the processed figure, the total and total degree of the graph is calculated, and the larger value is the answer.

F

Do once SPFA, if encountered negative ring on the DFS over this point, then the point of traversal is not the shortest, marked '-'. The final output can be.

I don't know what's wrong with my code.

J,k

Bare LCA.

  

Summer Camp-Basic graph theory

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.