[C++] STL space Configurator

What is a space configurator? Space configurator is used to efficiently manage space (space application and recycling) for each container Why do I need a space configurator Implement vector, list, map and unordered in simulation_ Map and other containers, all places that need space are applied through new , although the code can run norm ...

Added by Kol on Tue, 01 Feb 2022 19:52:52 +0200

Dp from introduction to mastery 2.1 (linear DP, ascending subsequence, common subsequence)

emmm,dp problem is really magical. If you want to get the equation of state, you can take off immediately. If you can't think of it and have no idea, then It is suggested to write after a good meal. It may be faster In fact, dp is more an experience. If you see more, you will write faster, because the state of this kind of questions means that ...

Added by skovela on Tue, 01 Feb 2022 19:06:07 +0200

My first Windows application

First Windows application There are four steps to create a window application: Register window classcreate a windowDisplay windowupdate windows Window class WNDCLASS Window class is not a class in C + +, but can be understood as "category" A window class is a template used to create a window Each window class has a window ...

Added by joel426 on Tue, 01 Feb 2022 17:22:48 +0200

C + + memory partition model

When the C + + program is executed, the memory is divided into four areas; Code area: the binary code that stores the function body and is managed by the operating system Global area: store global variables, static variables and constants Stack area: it is automatically allocated and released by the compiler to store the parameter values an ...

Added by ocpaul20 on Tue, 01 Feb 2022 13:29:22 +0200

Install ROS2 Galactic for Ubuntu 20.04

I wrote a manual about installing ROS 2E under Ubuntu 20.04 before. I'm going to use Moveit2 recently. I found that I still need to upgrade to Fox Fitzroy. I've seen that the latest one has arrived at Galactic Geochelone, so I'll record the process of installing ROS 2 Galactic Geochelone under Ubuntu 20.04. Because there are many holes in th ...

Added by zxiny_chin on Tue, 01 Feb 2022 05:05:00 +0200

Performance optimization example: chia project

Chiapos is a project on GitHub. If you want to know its specific content, you can know it by yourself. Address: https://github.com/Chia-Network/chiapos . The current version number is e5830b182d155f8599426a7374306445cd7c0418, which is the latest version up to June 7, 2021. We first open one of the files. We can see that this is a sorting modul ...

Added by KoshNaranek on Tue, 01 Feb 2022 02:51:00 +0200

Comprehensive coding -- MPEG audio coding experiment

1, Overall framework of programming 1. Principle of MPEG-1 Audio LayerII encoder The source output is decomposed into subbands of different frequencies, and then the subbands of different frequencies are encoded 2. Psychoacoustic model Through the subband analysis filter bank, the signal has high time resolution to ensure that the en ...

Added by koopmaster on Tue, 01 Feb 2022 01:58:51 +0200

Notes on the general algorithm for the sum of Leecode K numbers (taking the sum of four numbers as an example)

Sum of K numbers Title Description: give you an array composed of any N numbers. Given a target value target, it is required to find K numbers so that the sum of these K numbers is target. It is required to output the combination of all k digits that meet this condition, and the combination shall not be repeated (take K=4 as an example) I ...

Added by knobby2k on Tue, 01 Feb 2022 00:45:07 +0200

Brother Jiang takes you to play with C language | 13 - one level pointer and multi-level pointer

Basic concepts of pointer What is the address Address in life: Memory address: Address and data in memory unit are two completely different concepts The address is like the room number. According to this number, we can find the corresponding roomMemory units are like rooms, which are dedicated to storing data Variable address: The ...

Added by fhil85 on Mon, 31 Jan 2022 23:26:51 +0200

UTHash Use Tutorial

UTHash Use Tutorial quick get start To get started with this module, visit: Introduction, Data Interface, Sample Code introduce Hash: Hash, accessed by mapping data to a location in memory storage through functions on key values. This process is called Hash, a mapping function called a hash function, and an array of records is called a hash ...

Added by PHPFreaky on Mon, 31 Jan 2022 20:51:19 +0200