Simple factory mode of Dahua design mode

Background: Beginners of programming will have such problems. When encountering problems, they intuitively use the logic that the computer can understand to describe the problems to be solved and the specific solution process. However, such programs are only to meet the current needs and are not easy to maintain and expand. Problem solving idea ...

Posted by mikewhy on Sun, 17 Nov 2019 08:58:42 -0800

Common sorting algorithms

Merge order: 1. It is a sort algorithm based on merge operation, which is an application of divide and conquer method 2. Steps: Assume that the sequence to be sorted is R[0...n-1], and adopt two-way merge a. divide r into two subsequences R1, R2 with the same growth or the same difference of 1 b. divide the subsequences R1 and R2 recursive ...

Posted by baldwinw on Fri, 15 Nov 2019 12:30:55 -0800

cpp caffe net run in multiple threads

This article starts from personal blog https://kezunlin.me/post/8d877e63/ Welcome to read! cpp caffe net run in multiple threads Guide set_mode Caffe fails to use GPU in a new thread ??? see here the `Caffe::mode_` variable that controls this is thread-local, so ensure you're calling `caffe.set_mode_gpu()` in each thread before running ...

Posted by evanct on Wed, 13 Nov 2019 07:04:38 -0800

Different LCA - luoguP1852 Chess

Logu Title Link loj End Title Link Topic: Play a chess game on one axis.Chess pieces can only be placed on the whole point.No more than one piece can be placed at each point.Complete with Chess: There are 3 pieces on the board, in the three positions a, b and c.We want to move their positions to x, y, z with the least jumps. Rule of Jump: Selec ...

Posted by CaseyC1 on Tue, 12 Nov 2019 19:34:06 -0800

vijos2051 SDOI2019 quick query

Title Link Make complaints Let the practice card of \ (nlog \) pass.. thinking Because \ (1 \le q \le 10^5 \), you can first label the position of each standard operation. In this way, all subscripts are within \ (10 ^ 5 \). Both multiply and add operations can be written in the form of \ (kx+b \). A prefix is then maintained for these operatio ...

Posted by NewBob on Tue, 12 Nov 2019 12:00:28 -0800

C++ Implementation of Binary Tree Explanation and Common Operations

Binary Tree Padding - Tree In the previous articles, the linear table, stack, queue, string, and so on, which we have mainly introduced, are one-to-one linear structures. Today we are explaining "tree" is a typical non-linear structure. The feature of the non-linear structure is that the direct precursor of any node, if it exists, mu ...

Posted by beyers on Sat, 09 Nov 2019 20:13:18 -0800

Maximum Stream EK of Network Stream --- POJ 1459

Title Link   Continuation of this blog Last Blog (Maximum Stream Dinic algorithm), this time the EK algorithm is used to solve the maximum flow problem. EK algorithm idea: Search for an extension road from source to sink in the graph, you need to record this path, increase the maximum feasible flow Liu of this path to result ans, then update ...

Posted by BoukeBuffel on Thu, 07 Nov 2019 12:57:57 -0800

Luogu P3388 [template] cut point (top) (Tarjan)

Title Link https://www.luogu.org/problemnew/show/P3388 Template problem   Solving problems What is a cut? How to find the cutting point? dfn: time stamp, dfs order of a graph Tree edge: to the child's edge Reverse edge: edge connected to ancestor low: the edge with the smallest timestamp that a point can reach (only one reverse edge ...

Posted by bradjinc on Tue, 05 Nov 2019 10:27:55 -0800

C + + exception throwing and catching

Close to leaving, I decided to make up for the knowledge of C++11 that I had never learned before. Suddenly, I turned to exception handling. I felt it was a little fun and wrote a test program myself. Then the three views were completely subverted.The source code is as follows: #include <iostream> #include <string> #include <exc ...

Posted by djw821 on Tue, 05 Nov 2019 09:53:30 -0800

P1108 low price purchase (DP)

subject P1108 low price purchase analysis I'm exhausted physically and mentally. I'm almost autistic. When I was sent N, I finally understood the meaning of this sentence When two schemes "look the same" (that is, they form the same price queue), the two schemes are considered the same. There are two questions about this question. T ...

Posted by suprsnipes on Tue, 05 Nov 2019 06:55:39 -0800