HDU 1281 (maximum matching + enumeration in a bipartite graph)

Question: Judge the key edge in the maximum matching of a bipartite graph, that is, remove these edges and you will not be able to get the maximum matching. As the question shows a 100*100 graph, the enumeration + Hungary complexity is 10 ^ 8.

HDU 2065 (recursive + matrix optimization)

Finally, I ended all my 20XX questions. I had never dared to start with this question before. Now I have learned the recursive equation of matrix optimization, and this question is coming soon... X [I] indicates that the number of I characters A

HDU 1269 (Tarjan)

Simple TarjanAlgorithm. In fact, the Tarjan algorithm first finds the root of a strongly connected component tree, and then it is easy to find the entire strongly connected component. The key is to use the DFS tree.   Maze castle Time Limit: 200

Poj 2244 (Joseph's ring)

Basic Joseph's ring Remember the recursive formula of Joseph's ring. Assume that it is the K-person from 0 to n-1 and from 0 F [1] = 0; F [I] = (F [I-1] + k + 1) % I (I> 1)   Eeny meeny moo Time limit:

Zoj 1516 (maximum matching of bipartite graphs)

A simple bipartite graph. Idea: For each vertex label that is not Ponds, split each vertex into two during graph creation, and perform the maximum matching between the two parts. The specific method of edge creation is that each vertex is labeled,

HDU 2444 (maximum matching of binary images)

First, determine whether it is a bipartite graph. DFS will dye each vertex. If there is no conflict, it means a bipartite graph. Then Hungary goes through water directly...   The accomodation of Students time limit: 5000/1000 MS (Java/others)

Poj 1159 (longest common subsequence)

Evaluate how many characters must be added to a string before it can be converted into a return text. Idea: Find the largest public subsequence of this string and its inverse string. In fact, this sequence is actually the largest number of input

HDU 2255 (km)

Optimal Match of KM. KmAlgorithmIs to give each vertex a label (calledTop logo. Set vertex XI to a [I], vertex Yi to B [I], and edge weight between vertex XI and YJ to W [I, j]. At any time in the Algorithm Execution Process, for any side (I, j),

HDU 1007 (division and Control Law)

It is implemented using the semi-segmentation method. after dividing a heap into two heaps and recursively obtaining the minimum distance between the two heaps, the key is to determine whether the distance between the two heaps is smaller, then we

HDU 2586 (LCA)

Recent common ancestor .. It indicates that it has been stuck in a single location for a long time .. Thinking is still a little worse. to record the distance from a tree, you only need to record the distance to the root node. If the distance

Zoj 2314 (feasible stream without sink source)

The key to a network stream with the upper and lower bounds is how to reflect the lower bounds. Therefore, you must first determine whether the lower bounds are feasible. And then solve the maximum stream. This question does not provide the source

Poj 2125 (least point weighted overwrite)

# Include # Include String . H> # Include Using Namespace STD; # Define N 250 # Define M 20100 # Define INF 0x3fffffff Struct Node { Int From , To, next, W;} edge [m]; Int N, m; Int CNT, pre [N]; Int S1, NN, T; Int LV [N], gap [N];

HDU 2426 (km)

KM simple question, but pay attention to some things. 1. the 500*500 Point Graph mentioned in the question cannot be processed based on the complexity of the km. However, because the data of this question is not enough, it is not a matter of

HDU 2819 (Bipartite Graph Matching)

This question can be obtained by performing row or column transformations based on a square matrix with a diagonal line of 1. If you want to do this, you can know that each row selects only one column. You need to select all the columns, and you

Poj 2549 (Binary)

The key to this question is to convert A + B + C = D to A + B = D-C, and then sort all the situations of A + B, then, enumerate D and C in the ascending order, and search for D-C in the second place.   Sumsets

HDU 3605 (Multiple matching of bipartite graphs | Network Stream)

At first, I thought that this question was a Bipartite Graph Match. Then I used Hungary to do it, TLE, and HK to do it, TLE... It is found that the network stream is used, and 100000 vertices need to be compressed, because the possible conditions

Hdu 1872 (stable sorting)

Stable sorting is a sorting method that does not change after the same elements are sorted. Bubble is a stable sorting. A faster merge is also a stable sorting.  Stable sorting Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/

Poj 3659 (minimum decision set on the tree)

Greedy: first use dfs to record all vertices from node 1, and then reverse greedy. This ensures that each time the child node is judged and then the parent node is judged. Then, when judging every two adjacent points (one must be taken), we select

Hdu 1019 (LCM)

Find the number of LCM, you can know that from the first one, find the minimum public multiple for each two, and then get the answer.Least Common Multiple Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total

Hust 1017 (dancing links)

The first DLX question is a template question. After reading the paper for a long time, I learned that the first write of the two-way cross-linked list is still a bit tangled. But be patient. Search Optimization, I feel that this ultra-efficient

Total Pages: 64722 1 .... 54777 54778 54779 54780 54781 .... 64722 Go to: GO

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.