Algorithm question brushing record (DAY5)

Who's in the Middle(poj2388) Original question link Method 1: Wrong solution: use set, but ignore that there are no duplicate elements in set!!! The error code is as follows: #include<iostream> #include<set> using namespace std; #define NMAX 10004 set<int> cow; int N; int main() { cin >> N; for (int i = 0;i < N;i+ ...

Posted by tharagleb on Sat, 26 Feb 2022 13:45:30 +0100

[image encryption] image encryption and decryption based on matlab GUI+Logistic+Tent+Kent+Henon [including Matlab source code phase 1745]

1, Introduction to chaotic system 0 Introduction With the rapid development of communication technology, more and more fields need to transmit digital image signals, so the security of information transmission is becoming more and more important. Two kinds of protection technologies commonly used in digital image communication are digital wate ...

Posted by deemurphy on Sat, 26 Feb 2022 13:27:20 +0100

2022 Niuke winter vacation algorithm basic training camp 4

A.R thinking Suppose there is a string containing k k k r strings [L,R], the left and right first P is L,R, then the contribution of this paragraph is ( l − L ...

Posted by Eddie Fisher on Sat, 26 Feb 2022 13:00:50 +0100

1726 milking sequence (classified discussion, simulation)

1. Problem Description: Farmer John has n cows numbered 1... N. He milks his cows every day. The social structure of dairy cows is very complex, and its structure has two key characteristics. First of all, there are M cows with distinct status levels. According to the rule that the higher the status, the earlier the milking, the relative milki ...

Posted by SheepWoolie on Sat, 26 Feb 2022 11:02:20 +0100

U-Net and PSPNet image segmentation algorithm for pavement segmentation based on propeller frame 2.1

U-Net and PSPNet image segmentation algorithm for pavement segmentation based on propeller frame 2.1 Introduction to the data set used in the learning process The data provided in the 7-day camp tutorial is not used. The data set used in this version is Road trading knowledge (RTK) datasetDataset features: This dataset provides images take ...

Posted by casey_00 on Sat, 26 Feb 2022 07:19:33 +0100

Simple digit dp and understanding of leading 0

Essence of digital dp: A fast enumeration method, which satisfies the nature of dp, and then carries out memory search. Example: Niuke - Digital children Title Description: Jiufeng has been addicted to digital dp recently. On this day, he created another digital dp problem: Give an interval [l,r][l,r][l,r], find out how many numbers in this ...

Posted by nita on Sat, 26 Feb 2022 05:02:51 +0100

Greed -- Huffman tree: merging fruits

Basic concepts Path: the path from one node to another in a tree is called a path. In the following figure, the path from the root node to node a is a path. Path length: in a path, the path length should be increased by 1 for each node. For example, in a tree, if the number of layers of the root node is specified as 1, the path length from t ...

Posted by chriskl on Fri, 25 Feb 2022 16:12:46 +0100

The first Hehuang cup data Lake algorithm competition in Qinghai Province - vehicle multi-attribute recognition track preliminary baseline_ copy

2021 the first Hehuang cup data Lake algorithm competition in Qinghai Province - vehicle multi-attribute recognition track preliminary baseline (Unofficial) Link from AI Studio project https://aistudio.baidu.com/aistudio/projectdetail/3511579 1, Event background At present, China's digital economy is developing by leaps and bounds, and remar ...

Posted by Crogge on Fri, 25 Feb 2022 16:11:21 +0100

Summary of leetcode's simulated problem brushing 3

Summary of leetcode's simulated problem brushing 3 1-transpose matrix Title Link: Title Link stamp here!!! Idea: just put the value of the corresponding row in the corresponding column. Do an easy question first to comfort yourself. class Solution { public int[][] transpose(int[][] matrix) { int m = matrix.length ; int n ...

Posted by Kathy on Fri, 25 Feb 2022 15:05:33 +0100

10 commonly used algorithms (8 ~ 10)

10 commonly used algorithms (8 ~ 10) 1, Dijkstra algorithm Application scenario - shortest path problem [the external chain image transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the image and upload it directly (img-g8rjj2vk-1645791772844) (C: \ users \ Luo'xin \ appdata \ roaming \ typora ...

Posted by skorp on Fri, 25 Feb 2022 13:29:37 +0100