[LeetCode learning plan] dynamic planning on the 12th day of algorithm introduction C + +

LeetCode [learning plan]: [algorithm] preface Dynamic programming (DP) is a big head in the algorithm. It aims to turn the problem to be solved into several subproblems. First solve the subproblems, and then get the solution of the original problem from the solutions of these subproblems. Sub problems in dynamic programming are often ...

Posted by tonbah on Wed, 01 Dec 2021 11:07:09 +0100

Acquisition, conversion, sorting and coincidence algorithm of animal PET

Acquisition, conversion, sorting and coincidence algorithm of animal PET The project is mainly responsible for the type conversion of the read chnnel original data according to the location spectrum and energy spectrum to obtain the location information, time information and energy information, and sort them according to the time information. ...

Posted by jfarthing on Wed, 01 Dec 2021 08:28:37 +0100

PAT class B question brushing / 1015 theory of virtue and talent / C + + implementation

1, Title Description Sima Guang, a historian of the Song Dynasty, wrote a famous "theory of virtue and talent" in Zizhi Tongjian: "therefore, the perfection of talent and morality is called a saint, the death of talent and morality is called a fool, the victory of virtue is called a gentleman, and the victory of virtue is called ...

Posted by astaroth on Wed, 01 Dec 2021 07:02:42 +0100

C + + common file stream operations

1. Open the file 1.1 fstream type #include <fstream> ofstream //File write operation memory write storage device ifstream //File read operation, the storage device reads the area into memory fstream //Read / write operation. Open files can be read / written 1.2 function prototype of open() void ope ...

Posted by kamurj on Wed, 01 Dec 2021 05:39:26 +0100

Linux signal learning notes

Linux signal learning notes (1) Program running   there are several ways to abort this program when the following code is running. #include<unistd.h> #include<stdio.h> using namespace std; int main() { for(int i=1;i<=100;i++) { printf("time of programe running:%ds\n",i); sleep(1); } } 1. &ems ...

Posted by jokerfool on Tue, 30 Nov 2021 17:14:29 +0100

In depth analysis of Qianlima android binder - native layer connecting the preceding and the following (client part)

csdn online learning course, course consultation and Q & A and new course information: QQ communication group: 422901085 for course discussion android cross process communication practice video course (add group to get preferential) I believe you should be familiar with the above diagram of binder cross process communication. There are fo ...

Posted by samsbox on Tue, 30 Nov 2021 16:44:08 +0100

Dynamic programming matrix multiplication problem

Original link: https://www.cnblogs.com/fsmly/p/10228767.html description Matrix chain multiplication by dynamic programming Matrix chain multiplication problem   ) (1) problem description Given the chain of N matrices < a 1, a 2,..., a n >, where i=1,2,..., N, the dimension of matrix A i is p i-1 × p i. find a complete & ...

Posted by Gurzi on Tue, 30 Nov 2021 12:26:54 +0100

[ten thousand words summary] detailed explanation of common algorithms in C++STL (wrong year series)

Write in front This little rookie is a sophomore who loves programming. At present, he mainly focuses on learning C + +, data structure and algorithm.I have only started learning algorithms in the last two months (who knows what I did in my freshman year). I have been tortured by algorithms (it's too difficult...). I have brushed more than ...

Posted by colossus_09 on Mon, 29 Nov 2021 15:13:03 +0100

Qt dynamic properties

Dynamic properties unpolish() and polish() of Qt 1. Attributes in QT Property refers to the properties of the window or control. For example, the opacity property represents transparency, geometry refers to position and size, and the pos property represents position. The controls in qt have their own properties. We can also define properties ...

Posted by w.geoghegan on Mon, 29 Nov 2021 05:31:53 +0100

Design and implementation of operator priority analysis algorithm (including code)

Design and implementation of operator priority analysis algorithm Write in the front: my compilation principle is not very good and I don't listen to lectures, so my idea of writing code is relatively simple. Simple thinking means that the code is very cumbersome. Please cross if you mind. If you have any advice, please leave a message in the ...

Posted by fuji on Mon, 29 Nov 2021 03:42:11 +0100