Chongqing No.8 Middle School Hongfan junior middle school first grade programming society C2024HF700 winter vacation training summary - Day1

catalogue Day 1 9:00 - 11:00 am, bottom test T1: bouncing grasshopper Title Description Input format Output format sample input Output sample Example explanation analysis T2: Captain Flint's drifting Title Description Input format Output format Sample sample input Resolution: T3. Tennis match Title Description Input format ...

Posted by Theramore on Sat, 29 Jan 2022 11:40:56 +0100

Supplementary questions of TIANTI competition of Shanghai University of Technology

Meaning of question A Give you a string and let you calculate how many pairs of adjacent letters there are, For example, a and b, b and c are two pairs of adjacent letters, while a and c, a and z are not. (Note: the letters on any two subscripts can become adjacent pairs. For example, for the string "adfb", the character 'a' with sub ...

Posted by dukeu03 on Sat, 29 Jan 2022 10:31:15 +0100

[OpenCV complete routine] 83 Low pass filtering in frequency domain: character restoration of printed text

[OpenCV complete routine] 83 Frequency domain low-pass filtering case: printed text character repair Welcome to pay attention "100 complete OpenCV routines" Series, continuously updating Welcome to pay attention "Python Xiaobai's OpenCV learning course" Series, continuously updating 3.5 low pass filtering in frequen ...

Posted by Magestic on Sat, 29 Jan 2022 07:31:27 +0100

Implementation of common load balancing algorithms in mining framework

1 load balancing algorithm The English name of Load Balance is Load Balance, which means to balance the load (work task) and allocate it to multiple operating units for operation, such as FTP server, Web server, enterprise core application server and other main task servers, so as to complete the work task together. Since it involves mul ...

Posted by x2fusion on Sat, 29 Jan 2022 06:34:30 +0100

Divide and conquer application is divided into search, quick sort and recursive sort

preface We all know that there are five commonly used classical algorithms: divide and conquer algorithm, greedy algorithm, dynamic programming algorithm, backtracking algorithm, branch and bound algorithm. Each algorithm plays a very important role in computer science; This article will introduce an implementation of the divide and conquer al ...

Posted by FireyIce01 on Sat, 29 Jan 2022 04:38:27 +0100

101 singleton mode (creation type)

1. Single case introduction Definition: Ensure a class has only one instance, and provide a global point of access to it (ensure that a class has only one instance, and instantiate it by itself and provide this instance to the whole system.) Concept: an object can only create one instance Follow the rule: privatize the constructor and obtai ...

Posted by smartknightinc on Sat, 29 Jan 2022 00:59:42 +0100

Sword finger brush question 1 -- array and matrix

Refer to the order of cyc. JZ50. Duplicate number in array Title Description: all numbers in an array of length n are in the range of 0 to n-1. Some numbers in the array are repeated, but I don't know how many numbers are repeated, or how many times each number is repeated. Please find any duplicate number in the array. Input: {2, 3, 1, 0, 2 ...

Posted by aaadee on Fri, 28 Jan 2022 20:56:38 +0100

Algorithm template or conclusion

explain 1. The efficiency of all the following algorithms shows that most of them are measured by themselves or through OJ on the network 2. Some (about 80%) codes come from OJ of other bloggers or networks 3. Update as soon as you think of it 4. It is applicable to xcpc, blue bridge and other algorithm competitions 5. I'm a konjaku, wh ...

Posted by groundwar on Fri, 28 Jan 2022 20:45:07 +0100

IndexTree and AC automata

catalogue IndexTree AC automata IndexTree Tree array or Binary Indexed Tree (English: Binary Indexed Tree), also named Fenwick tree after its inventor. Its original intention is to solve the calculation problem of Cumulative Frequency in data compression. Now it is mostly used to efficiently calculate the prefix sum, interval sum of ...

Posted by JetJagger on Fri, 28 Jan 2022 20:10:05 +0100

Top ten sorting algorithms

catalogue 6. Heap sorting 7. Quick sort 7.1 fast exhaust 1.0 7.2 fast exhaust 2.0 7.3 fast exhaust 3.0 7.4 summary 6. Heap sorting Learning heap sorting has to introduce the types of binary trees. Binary trees are divided into complete binary trees, balanced binary trees, ordered binary trees, full binary trees and perfect binary trees ...

Posted by Brian W on Fri, 28 Jan 2022 19:57:59 +0100