loam source code analysis 8: transformMaintenance
loam source address:
https://github.com/cuitaixiang/LOAM_NOTED.
Thesis study:
Loam: Lidar odometry and mapping in real time.
Analysis and summary of loam source code:
loam source code analysis 1: scanRegistration (I).
loam source code analysis 2: scanRegistration (II).
loam source code analysis 3: laserOdometry (I).
loam source cod ...
Posted by ubunken on Fri, 28 Jan 2022 09:38:21 +0100
Analysis of leetcode problem solving ideas 693 - 699 questions
Alternate bit binary number Given a positive integer, check whether its binary representation always alternates 0 and 1: in other words, the numbers of adjacent two digits in the binary representation will never be the same.
Get data by bit and XOR
class Solution {
public:
bool hasAlternatingBits(int n)
{
int a = n & 1;
...
Posted by a1amattyj on Fri, 28 Jan 2022 07:21:04 +0100
Learning note 2: linear data structure
preface
this article is about 300 lines of daily code link Study notes. give a 10% discount, with a daily code of 30 lines. this article adjusts the learned code according to your own understanding. the code in this article is just personal notes, and some notes are jumping. imitating excellent code is in ...
Posted by redbullmarky on Fri, 28 Jan 2022 01:41:58 +0100
Key algorithms of graph
1, ConceptA Graph is a structure used to represent a certain relationship between objects. The "object" after mathematical abstraction is called a Vertex, node or point, and the correlation between nodes is called an edge. When drawing a Graph, nodes are usually represented by a group of points or small circles, and the edges between ...
Posted by mhalloran on Fri, 28 Jan 2022 01:09:52 +0100
Course design of "algorithm analysis and design": solving the eight queens problem by backtracking method and visual output (implemented in Python)
Learning objectives:
The eight queens chessboard problem is solved by Python language and backtracking method, and the visual output is realized
Learning content:
problem analysis
Problem Description: the eight queens problem is an ancient and famous problem and a typical case of backtracking algorithm. The question was put forward by in ...
Posted by doctor_james on Fri, 28 Jan 2022 00:56:58 +0100
Principle analysis and code implementation of BST (binary search tree)
brief introduction
As a classical data structure, binary search tree not only has the characteristics of fast insertion and deletion of linked list, but also has the advantage of fast search of array;
Introduction to binary search tree
Binary Search Tree: BST (Binary Search Tree), for any non leaf node of the Binary Search Tree. The valu ...
Posted by Unipus on Fri, 28 Jan 2022 00:55:25 +0100
2021-06-21 repeating elements in ordered linked list 2
leetcode daily question of deleting duplicate elements in the sorting linked list
Title Link: https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii/submissions/
Title Description:
There is a linked list arranged in ascending order. Give you the head node of the linked list. Please delete all nodes with duplicate numbers in t ...
Posted by DavidT on Fri, 28 Jan 2022 00:39:54 +0100
2045. Second short time to destination
Difficulty: difficulty
catalogue
1, Problem description
2, Problem solving thought
3, Problem solving
1. Judge extreme situations
2. Code implementation
4, Summary
1, Problem description
The problem description above LeetCode is directly used here.
Cities are represented by a two-way connected graph, in which there are n nodes, numbe ...
Posted by habs20 on Thu, 27 Jan 2022 23:53:54 +0100
Implementation of two-way circular linked list with the leading node of linked list
catalogue
I:
2, Implementation:
Three, end
I:
The linked list is divided into eight categories. This article describes the implementation of the two-way circular linked list of the leading node;
The physical structure of such linked list is shown in the figure below:
There are two pointers in each node, pointing to the previous no ...
Posted by dibyajyotig on Thu, 27 Jan 2022 23:33:12 +0100
C use of basic arrays and strings
1, One dimensional array
Array is a continuous space in memory, and the type of each element is the same
1.1 definition of array
The array subscript starts from 0, and the name of the array is a constant. If you directly output the name of the array, the result is the address of the first element in the array
int array[10];//Define a on ...
Posted by pocobueno1388 on Thu, 27 Jan 2022 19:13:37 +0100