Learning notes and understanding of PID algorithm

PID algorithm type There are two forms of PID algorithm in engineering First define a structure typedef struct PID { float Proportion;//P float Integral; //I float Derivative;//D float PrevError;//Last error float LastError;//Last error float Error; //Current error float DError; float SumError; //Cumulative sum ...

Posted by harshilshah on Wed, 02 Feb 2022 18:56:02 +0100

BFS and DP -- the 70th biweekly match of Li Kou

โญ New pit in winter vacation -- daily question notes of code Fox First question, greedy thought (take the largest two at a time, and then the largest third for free - the amount of sugar you can take for free is limited. Why not take one expensive one for free) The second problem is mathematical thinking (all numbers are in a range, so you onl ...

Posted by sparrrow on Wed, 02 Feb 2022 18:05:46 +0100

java data structure and algorithm -- sorting

Introduction: This article comes from the summary and record of the dark horse course, Video link . Learn data structures and algorithms. Don't memorize the results, but analyze the problem, analyze the process and implement it. The implementation method is not unique, and the idea is the positive solution. Simple sorting Bubble sorting ...

Posted by timmy0320 on Wed, 02 Feb 2022 17:52:35 +0100

Rotating string of daily question (super detailed, super hard core)

Introduction to the content of the title (left-handed transport operator) Implement a function that can k characters in a left-handed string. ABCD left turns one character to get BCDA ABCD left rotation two characters to get CDAB Idea 1: temporary array method 1 Array arr the contents of the array should be moved forward by K b ...

Posted by cityguru on Wed, 02 Feb 2022 15:21:10 +0100

How does the thread scheduler of RT thread find the task with the highest priority?

One life, two sports, three geomantic omens, four accumulation of Yin virtue, five reading, six seven aspects, eight worship God, nine to noble people and ten health preservation. ----Folk products Feng Tang's interpretation of the ten elements of success: one life, two movements, three Feng Shui, four accumulation of Yin virtue, five reading, ...

Posted by rg_22uk on Wed, 02 Feb 2022 14:37:00 +0100

Blue Bridge Cup lesson 5 tree array and line segment tree 2D/3D difference

1, The index of the tree array starts from 1 Operation O(logn) Single point modification: add a number to the number at a certain position Interval query: find the sum of a prefix Offline practice: modification is not supported Online practice: support modification principle Determination of the number of layers: there are several zeros at t ...

Posted by winkhere on Wed, 02 Feb 2022 13:12:22 +0100

Bubble sorting to realize quick sorting qsort C language

Catalogue preface Quick sort Basic use Parameter interpretation Simulation Implementation preface First of all, I wish you a happy New Year ๐ŸŽ‰ ๐ŸŽ‰ ๐ŸŽ‰! hello โœจ๏ผŒ Hello, everyone. This is the original ๐Ÿ’– ๐Ÿ’›๐Ÿ’™๏ผŒ With more and more articles, there may be many partners who can't find the articles they want to read, so I came out. ...

Posted by tsilenzio on Wed, 02 Feb 2022 11:36:44 +0100

Introduction to Algorithms (Day1)

catalogue 1. Search in two-dimensional array 2. Rotate the minimum number of the array 3. Adjust the array order so that odd numbers precede even numbers More than half of the number in the array 1. Search in two-dimensional array Core test points: array correlation, characteristic observation, grasp of time complexity [description] In ...

Posted by phpnewby1918 on Wed, 02 Feb 2022 09:58:07 +0100

Prefix and brush question summary of leetcode 1

Prefix and brush question summary of leetcode 1 1 - subarray with the smallest length Title Link: Title Link stamp here!!! Idea: prefix and + binary search Find the prefix sum of the array, find and update the smallest sub array in the prefix sum The AC code is as follows: class Solution { public int minSubArrayLen(int target, int[] num ...

Posted by imran.rajani on Wed, 02 Feb 2022 09:10:22 +0100

Multi angle understanding of sigmoid, relu and tanh activation functions

sigmoid activation function Function expression: Function image: From this figure, we can see the following characteristics of sigmoid activation function: 1. When the input is greater than zero, the output must be greater than 0.5 2. When the input exceeds 6, the output will be infinitely close to 1, and the discrimination function of ...

Posted by robh76 on Wed, 02 Feb 2022 06:46:33 +0100