Target detection algorithm -- Interpretation of YOLOv1
I believe that students who study algorithms will learn yoov1 algorithm when they are just getting started with target detection. After all, it is the beginning of YOLO algorithm. Of course, in order to take notes, they will do it directly on this blog for your reference and study. Next, I will share the knowledge required for the implementatio ...
Added by mikeym on Wed, 23 Feb 2022 03:51:43 +0200
Learn Java--day06 -- array from scratch
I Advanced application of array
1. Array inversion
Meaning: exchange the elements in the array in order of index
Prerequisites for reversal: 1. Confirm the index position of the element to be exchanged int start = 0; int end = arr.length - 1 2. The law of index position movement after each exchange start++ end– 3. How to exchange eleme ...
Added by disconne on Tue, 22 Feb 2022 19:53:12 +0200
C++ programming: common sorting algorithms
C++ programming: common sorting algorithms
Bubble sort
Algorithmic ideas:
Compare adjacent elements. If the first is larger than the second, swap the two;Do the same work for each pair of adjacent elements, from the first pair at the beginning to the last pair at the end, so that the number of elements at the end should be the maximum;Repeat ...
Added by Sassci on Tue, 22 Feb 2022 19:05:43 +0200
Algorithm - stack and queue (Java implementation)
Stacks and queues and priority queues
1. Push in and pop-up sequence of stack
Enter two integer sequences. The first sequence represents the push in order of the stack. Please judge whether the second sequence may be the pop-up order of the stack. Assume that all the numbers pushed into the stack are not equal. For example, sequence 1,2,3 ...
Added by KGodwin on Tue, 22 Feb 2022 17:30:41 +0200
Using artificial intelligence to predict the LEGO trademark size of LEGO packaging, in-depth research has made amazing discoveries
Introduction: I wonder if you will have a whim one day. Do you want to know whether the size of the classic red background and white LOGO on Lego packaging is standard and unified, or did the designer drag it out with PS?
The author came across an article: Have you ever thought about whether the LEGO trademark size of LEGO packaging is random? ...
Added by cityboy101 on Tue, 22 Feb 2022 17:16:30 +0200
Fundamentals of genetic algorithm
GA related basic knowledge
(1) Application of genetic algorithm
Function optimization (classical application field of genetic algorithm); Combinatorial optimization (practice has proved that genetic algorithm is very effective for NP complete problems in combinatorial optimization, such as 0-1 knapsack problem, TSP, etc.); Auto-Control; Robot ...
Added by xengvang on Tue, 22 Feb 2022 15:08:59 +0200
[LeetCode notes] binary search special
Binary search = half search
Time complexity O (logN)
The most standard search
Initialize left boundary int len = arr.length - 1;
int l = 0; int r = len-1;
while loop judgment condition This is a left closed right closed interval (I often use it) while (left <= right)
There are also left closed and right open (not commonly used) ...
Added by jimmy2gurpreet on Tue, 22 Feb 2022 13:34:15 +0200
STL topology sorting
preface
My story with topological sorting
The first contact was the class of data structure. However, I was addicted to playing games and didn't understand the code at that time. The second time was the punch in group. The second question of a force deduction fortnightly competition was topological sorting (I used violence to cycle 100 times ...
Added by hi2you on Tue, 22 Feb 2022 07:53:43 +0200
Tarjan algorithm derives edge two-point double code with LCA shrink point, secant point, strong connection component
For Tribal Members Only
Introduction to Tarjan algorithm
The Tarjan algorithm is based on a depth-first search algorithm that defines the order number (timestamp) of the nodes where DFN(u) is the node and the order number of the earliest node that a subtree with Low(u) is the u or u can trace back to C++ code, using a chain forward star ma ...
Added by ahzulfi on Mon, 21 Feb 2022 19:11:07 +0200
[leetcode question brushing day 39] 969 Pancake sorting, 1104 Binary tree pathfinding, 838 Push domino, 717 1-bit and 2-bit characters
Day 39
969 pancake sorting
Give you an integer array arr, please use pancake flip to sort the array.
The execution process of a pancake flip is as follows:
Select an integer k, 1 < = k < = arr.length Inverse rotor array arr[0...k-1] (subscript starts from 0)
For example, arr = [3,2,1,4], select k = 3 to flip the pancake once, reve ...
Added by meshi on Mon, 21 Feb 2022 18:12:41 +0200