Ural1297 -- suffix Array

Question address: http://acm.timus.ru/problem.aspx? Space = 1 & num = 1297 Give you a string and ask you to find the longest reply substring Solution: Add the reverse string of the original string to the back of the original string, and add

Summer contest 1 Summary

1, Although the training has been exposed to many unknownAlgorithmI have also used it to solve the questions assigned by teachers, but they are not very familiar with learning specific questions. DP searches are the most basic, but they are really

Hdu1075what are you talking about (trie tree)

Question A in the evening: sleeping sweet ~ @ Albafica Daniel Before going to bed, let's see a dictionary tree: -> Question, click here There was a Martian who wrote a piece of Mars and could not understand it, but left a dictionary that

Summer contest4 Summary

1, Communication is not enough. Generally, a person understands a question and starts to want to do it. After each question is understood, at least one teammate needs to talk about the question and decide who is better suited to the question.

Hdu2894 debruijin Euler Loop

The Application of Euler's loop and rotating drum. Debruijin Time Limit: 4000/2000 MS (Java/others) memory limit: 32768/32768 K (Java/Others) Total submission (s): 307 accepted submission (s): 195 Problem description the surface

Poj3368 frequent values st Algorithm

A non-descending sequence composed of N numbers (this is an important condition ). There are m inquiries, and the maximum number of numbers appear between [L, R. This question only involves querying and does not involve modification. Select ST

Hdu1421 move dormitory

Simple DP Sort weights by quality Only items that may be adjacent to their quality can obtain the Least Square of the Quality Difference DP [I] [J] indicates the minimum fatigue required by j pairs in the first I items DP equation: DP [I] [J]

Double dealing -- hdu2139 -- finding a law

Question address: http://acm.hdu.edu.cn/showproblem.php? PID = 1, 4259 /* Author: bob lee2012.8.27 ==================================================== first, the question there are n cards for understanding the meaning, then, if there are more

Poj3469 dual core minimum CPU cut

Here I will give several equal relations. 1: F is the largest stream of the capacity network G. 2: | f | equal to the minimum cut capacity of the capacity network. 3: There is no augmented path for the capacity network. 4: The residual

Spoj705 -- suffix Array

Address: http://www.spoj.com/problems/SUBST1/ The question meaning and solution ideas are the same as spoj694, but the scope is wider. But we useAlgorithmNo pressure, directly crushed. See: http://blog.csdn.net/dr5459/article/details/9051149

Nyoj298 point transformation matrix multiplication

Matrix67 Daniel's blog about Matrix Multiplication. This question is a template question of the first type. Previously, I learned how to multiply the matrix continuously. The multiplication of matrices is amazing.     Time limit for point

Hdu1195open the lock (bidirectional BFS + cyclic queue)

-> Question, click here It takes at least a few steps to change from the first string to the second string. Changes in each step include: 1: Each number is + 1, 9 + 1 = 1; 2: Each number-1, 1-1 = 9; 3: A number is exchanged with its

Poj3902 the bad number

The meaning of thinking here are clearly written → http://hi.baidu.com/chenwenwen0210/item/b4f142d53129fdc954347f11 I think this question is really amazing.ProgramIt is too important for the staff to be rigorous, conscientious, and good

Ural1780 -- grey code application, Number Theory

Question address: http://acm.timus.ru/problem.aspx? Space = 1 & num = 1780 Question meaning: Give you a gray code binary and Gray Code itself But some of them are? Instead, ask if this result is unique. Output is unique. output is ambiguity

Vijos p1243 product production monotonous queue + dp

I wanted to strengthen my DP capability, so I found several papers in the monotonous queue and started to look at the papers for my questions. However, the first question was a tragedy. I 've been doing this for a long time, today, a finally fell.

Hdu3001 traveling (tri-hexadecimal state compression DP)

[General idea] The TSP Problem of 10 points, but each point is required to go to both sides at most, not only once, so the problem should be solved using three-digit state compression. It can pre-process the K bit of each State. [Resolution] The

RSA factorization -- poj3892 -- mathematical problem + large number

Question address: http://poj.org/problem? Id = 3892 Give you a number N and a K Where N can be decomposed by two prime numbers p and q. A condition is added: | Q-KP | 5 Ask for p and q Solution: Q 5 Therefore, KP-q 5 Then kpq-Q * q Because n =

Hdu4272 lianliankan (DFS)

Lianliankan Time Limit: 2000/1000 MS (Java/others) memory limit: 32768/32768 K (Java/Others)Total submission (s): 1778 accepted submission (s): 558Problem descriptioni like playing game with my friend, although sometimes looks pretty naive. Today I

Poj2125 destroying the graph bipartite graph + minimum point weight overwrite + minimum cut

Let's take a few more questions to deepen our understanding. The same is to obtain the least vertex weight overwrite, and also to obtain a minimum cut, but to cut out those sides, as long as the final remaining network can be traversed once,

Hdu4331 image recognition is violent .. Ah ..

Question: For a square matrix composed of 1 and 0, calculate the number of squares where all four edges are composed of 1. Method: First, count each point in the matrix in four directions, and the maximum number of consecutive 1 values. Here we use

Total Pages: 64722 1 .... 41013 41014 41015 41016 41017 .... 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.