Data structure experiment 9 (sorting algorithm)
Of course, this is also the last experiment of data structure. It has brought us deep thinking through the previous 9 experiments. Now it should be greatly improved for programming algorithms and very good for problem solving. I think now for me, the programming ability has made a qualitative leap. Thank you for this data structure course, whic ...
Added by Peredy on Fri, 17 Dec 2021 20:41:49 +0200
Heap sorting, some related knowledge of heap
What is a heap
Maybe the concept is not well understood. Let's look at two pictures below.
So here comes the question...? The set of data we give can't be so coincidental. It happens to be orderly. At this time, we will introduce an algorithm: the downward sorting algorithm of the heap. Make a group of numbers that are not so ...
Added by srikanthiv on Fri, 17 Dec 2021 02:37:42 +0200
[traffic sign recognition] Based on GUI SIFT traffic sign recognition [Matlab 864]
1, SIFT introduction
SIFT, scale invariant feature transformation, is a description used in the field of image processing. This description has scale invariance and can detect key points in the image. It is a local feature descriptor. 1. Features of SIFT algorithm (1) It has good stability and invariance, can adapt to the changes of rotation, ...
Added by bslevin on Fri, 17 Dec 2021 01:09:39 +0200
Common algorithms for Javascript interview -- from freecodecamp
Find equivalent difference
Knowledge summary: symmetric difference. Mathematically, the symmetric difference of two sets is A set composed of elements belonging to only one set but not the other set. For example, the symmetric difference of set let A = [1,2,3] and let B = [2,3,4] is A △ B = C = [1,4]. This operation in set theory is equiva ...
Added by monloi on Fri, 17 Dec 2021 00:02:45 +0200
Rotate Array
1. Title
Give you an array and rotate the elements of the array K positions to the right, where k is a non-negative number.
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
Rotate one step to the right: [7,1,2,3,4,5,6]
Rotate 2 steps to the right: [6,7,1,2,3,4,5]
Rotate 3 steps to the ri ...
Added by NightCoder on Thu, 16 Dec 2021 23:48:37 +0200
[3D path planning] improved particle swarm filter UAV 3D path planning [matlab phase 1269]
1, Introduction to UAV
0 Introduction With the development of modern technology, there are more and more types of aircraft, and their applications are becoming more and more specific and perfect, such as Dajiang PS-X625 UAV specially used for plant protection, Baoji Xingyi aviation technology X8 UAV used for street view shooting and monitoring ...
Added by Snart on Thu, 16 Dec 2021 22:34:28 +0200
Algorithm problem summary
Joseph Ring
Joseph Ring was originally applied to the scenario of circular linked list. Because it takes time to build the circular linked list itself, we adopt a faster version of container instead
#include<iostream>
using namespace std;
#include<vector>
void JohnCircle(vector<int> arr, int m)
{
int count = 1;
auto it = a ...
Added by skatermike21988 on Thu, 16 Dec 2021 22:06:36 +0200
Machine learning algorithm sorting (including code)
First, let me make an advertisement~
If you need more artificial intelligence courses (source code + Notes + courseware), please scan the QR code to get it
The following is the text
In order to facilitate the exchange of fans, a Q group was established: [809160367,] let's learn and exchange together, including courseware materials, source ...
Added by maexus on Thu, 16 Dec 2021 21:10:35 +0200
What is logarithm? Why do I need a logarithm to judge whether my code is correct?
Function of logarithm
Logarithm is a way to verify whether the algorithm is correct by using a large number of test data. In the written test of the algorithm, we often can only be sure that the algorithm we write is logically roughly correct, but no one can guarantee the absolute correctness at one time. Especially for some complex problems, ...
Added by misschristina95 on Thu, 16 Dec 2021 20:24:08 +0200
Data structure and algorithm learning stack
,
Introduction to stack
Stack (stack) A stack is an ordered list of Filo first in last out. Stack is a special linear table that restricts the insertion and deletion of elements in a linear table to the same end of the linear table. The end that allows insertion and deletion is the changing end, which is called the top of the stack, and the ...
Added by ednark on Thu, 16 Dec 2021 19:39:40 +0200