Day94: divide and conquer strategy of sorting algorithm
Day93: loop invariants of sorting algorithm < insert, select, bubble >
Divide and conquer strategy
Divide And Conquer: resolve a big problem into countless same small problems for solution, that is, the use of recursion.
Sorted divide and conquer strategy:
Continuously split set A into the same small set, and finally return to the soluti ...
Posted by mdgottlieb on Sun, 31 Oct 2021 07:36:48 -0700
Summary of path in Servlet&JSP
Continuous learning & continuous updating
Learning attitude: keep breaking away
introduction
There are many places in Servlet and JSP that need to use the path. Many beginners don't know it very well. In order to facilitate themselves and others, write an article to discuss it and attract jade.
This article will be continu ...
Posted by sullyman on Sun, 31 Oct 2021 06:14:48 -0700
Design pattern の Service Locator Pattern
Service Locator Pattern
geeksforgeeks , I translated it understandably and added some of my own understanding.
Encapsulate the process of obtaining services with an abstraction layer.
Using a central registry called service locator, the service locator returns the information required to perform specific tasks upon request.
When a ...
Posted by omelin on Sun, 31 Oct 2021 05:25:15 -0700
java implementation of binary search tree and its related operations
java implementation of binary search tree and its related operations
The basic operations of Binary Search Tree include search, maximum, minimum, precursor, successor, insertion and deletion.
The time spent on the basic operation of the binary search tree is proportional to the height of the tree. For example, for a complete binary tree with ...
Posted by alwaysme on Sun, 31 Oct 2021 05:13:56 -0700
redisson solves oversold cases
1. Import dependent packages of Redisson and StringRedisTemplate
<!--redisson rely on-->
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>2.2.13</version>
</dependency>
<!--StringRedisTemplate rely on-->
<dependency>
...
Posted by frobak on Sun, 31 Oct 2021 04:35:48 -0700
Understanding the principle and use of Buffer in basic Java learning
Streams and buffers
Buffer is a container containing a certain amount of data. Some people think that a stream is a buffer, but it's not. A stream is a data sequence generated over time, and the buffer, as its name implies, plays a buffer role. The essence of buffer is queuing, and the essence of stream is data. The buffer can be understood as ...
Posted by roustabout on Sun, 31 Oct 2021 04:12:35 -0700
"Java tool class" BeanCopyUtil object replication tool class
Introduction
This number is mainly the sharing of common key technology points and common tool classes of Java; And technology sharing of integration frameworks such as springboot+springcloud+Mybatisplus+druid+mysql+redis+swagger+maven+docker; Technology sharing of big data processing frameworks such as datax, kafka and flink. The article will ...
Posted by xuelun on Sun, 31 Oct 2021 03:53:10 -0700
Java thread API, article summary
Thread creation
Inherit Thread class
You can create a Thread by inheriting the Thread class and creating an object through new.
public class MyThread extends Thread {
private int count = 5;
@Override
synchronized public void run() {
super.run();
count--;
System.out.println("from " + this.curre ...
Posted by stevel on Sun, 31 Oct 2021 02:38:49 -0700
Synchronized minimalist introduction to "principles of properties"
Synchronized property
Reentrant
Reentrant refers to the outer function of the same thread. After obtaining the lock, the inner function can obtain it again. What people say is:
If a thread gets a lock, it can continue to use it once it gets the lock. After the outer function obtains the lock, the inner function can continue to use the loc ...
Posted by gtanzer on Sun, 31 Oct 2021 01:52:56 -0700
Cause classification and solutions of memory leakage in Android
1. What is a memory leak?
android development mainly uses java (kotlin) language, which is the language of automatic memory management. When we use an object, we will automatically allocate memory to the object. When we no longer use the object, we will automatically recycle the memory allocated to the object. However, in some cases, the memor ...
Posted by rsasalm on Sun, 31 Oct 2021 00:14:59 -0700