Data structure and algorithm single row Journal - 2020 / 3 / 4-linked list single chain table
Technological process:
Application of single chain table
1. Establishment of single chain table:
Using one-way linked list with head to realize - ranking management of heroes of the marsh
Complete the addition, deletion, modification and query of heroes, note: delete, modify and search
The firs ...
Posted by explorer on Thu, 05 Mar 2020 01:45:01 -0800
The fourth day of vegetable learning python -- string object learning, slicing operation, function, global \ local variable
1, String object·
1,What is a string
//Enclosed by single quotation mark, double quotation mark and triple quotation mark
2,Definition string
s = 'today is friday'
ss = "wo shi meinv"
sss = """wo bu hui"""
s1 = str("aaa")
3,Common methods for Strings:
1)'capitalize' #Capitalize the first l ...
Posted by jonahpup on Wed, 04 Mar 2020 06:25:24 -0800
Advanced Java programming: thread pool and Lambda
Today, I'll show you the use case of multithreading. Hope to help you, please see the following list, thank you!
Use of thread pool
public static ExecutorService newFixedThreadPool(int nThreads);
Get a thread object. The initialization parameter is the required number of threads in the current th ...
Posted by robwilson on Wed, 04 Mar 2020 00:25:58 -0800
[SLAM] VINS-MONO analysis - vins'estimator process
5.vins_estimator
Basically, most of the functions in VINS are under this package, including IMU data processing (front end), initialization (I think it may belong to front end), sliding window (back end), nonlinear optimization (back end), key frame selection (part of content) (front end). When I firs ...
Posted by [Demonoid] on Tue, 03 Mar 2020 01:22:29 -0800
Python top 10 syntax
Preface
Python is a language that represents simple ideas. Its syntax is relatively simple and easy to use. However, it would be a mistake to overlook the subtlety and depth of Python syntax. This article carefully selected ten knowledge points that can best show the subtlety of Python syntax, and attached the detailed example code. If it can b ...
Posted by John Rowe on Sun, 01 Mar 2020 19:31:00 -0800
C + + concurrent (CH02)[Launching a thread-01]
Launching a thread
All callable objects can be used as parameters of thread
void do_some_work();
std::thread my_thread(do_some_work);
class background_task
{
public:
void operator()() const
{
do_something();
do_something_else();
}
};
background_task f;
std::thread my_thread(f);
Th ...
Posted by webworks on Sat, 29 Feb 2020 21:15:22 -0800
Review of nine intelligent optimization algorithms: annealing algorithm
Review purpose:
Better understand the basic model idea and principle implementation of the annealing algorithm, and further optimize the previous implementation code
On the basis of the original annealing algorithm, the possibility of "dead ash reburning" is introduced, which reduces the ...
Posted by Floodboy on Fri, 28 Feb 2020 04:59:57 -0800
go to implement java virtual machine 02
In the previous article, the command-line parameters are parsed through the flag package. In fact, the input parameters are saved in a structure. In the previous article, for example, the command java -classpath hello.jar HelloWorld, how can the HelloWorld class be found? Is it directly found in hello.jar?
Remember java's class loading mechanis ...
Posted by jeancharles on Thu, 27 Feb 2020 23:31:24 -0800
Chapter 14 operation overload and type conversion 14.8 function call operator practice and summary
14.8 function call operators
Overloaded function call operator class, its object can make the same behavior as a function, so we call such an object a function object.
Compared with ordinary functions, function objects can save some states, which are actually their data members.
This is actually the s ...
Posted by vbnullchar on Thu, 27 Feb 2020 20:12:26 -0800
Python 3 Standard Library: itertools iterator function
1. itertools iterator function
itertools includes a set of functions for processing sequential datasets.The functions provided by this module are inspired by similar features in functional programming languages such as Clojure, Haskell, APL, and SML.The goal is to be able to process quickly, use memory efficiently, and join together to represen ...
Posted by moagrius on Thu, 27 Feb 2020 18:19:38 -0800