[JAVA refined into immortality] magic chapter -- object oriented ② (inheritance, construction method, rewriting, overloading)

🔎 This is JAVA Chengxian road. Pay attention to my learning JAVA and don't get lost 👍 If it helps you, give the blogger a free praise to show encouragement Welcome 🔎 give the thumbs-up 👍 Comment collection ⭐ ️ This chapter introduces the construction method, inheritance, rewriting, overloading and creation method in detail. The whole arti ...

Posted by bsamson on Thu, 10 Mar 2022 21:04:59 +0100

Principles of index creation and design

1. Declaration and use of index 1.1 classification of index MySQL indexes include general index, unique index, full-text index, single column index, multi column index and spatial index. In terms of functional logic, there are four kinds of indexes: ordinary index, unique index, primary key index and full-text index. According to the physical i ...

Posted by micbox on Thu, 10 Mar 2022 17:32:18 +0100

0 basic society on the dynamic planning of editing distance (with C + + source code)

catalogue Question 1: judgment subsequence Question 2: different subsequences Question 3: deletion of two strings Question 4: editing distance Today, we continue to study the algorithm problems of dynamic programming, which are a series of algorithm problems about finding editing distance. Let's make a summary. I'll copy these problems t ...

Posted by social_experiment on Thu, 10 Mar 2022 21:51:02 +0100

Several sorting methods of arrays

Quick sort Quick sorting embodies the idea of divide and conquer. Determine the final position of a number each time, place it in the correct position, and then quickly sort the arrays at both ends in the same way through recursion. It should be noted that when using quick sort, the decision number needs to be taken randomly, which is called ...

Posted by ferronrsmith on Thu, 10 Mar 2022 17:33:18 +0100

Follow the compilation principle and the main process to realize "printing 1 + 1 results"

Demo prototype project that follows the compilation principle and main process to print 1 + 1 Results Project introduction Printing 1 + 1 results is so complicated that it is not a dazzling skill, but only for simple display: 1. Lexical analyzer; 2. Parser; 3. Script compiler; 4. There are four processes for compiling executors, because the ...

Posted by Big_Ad on Thu, 10 Mar 2022 20:14:59 +0100

Deadlock and deadlock detection

1, What is a deadlock For example, if thread a occupies resource 1, thread b occupies resource 2, thread b needs resource 1 and thread a needs resource 2, a deadlock will occur In the deadlock solution, log and gdb debugging can be used when the number of threads is small log and gdb cannot be used to solve the problem of too many thre ...

Posted by pentinat on Thu, 10 Mar 2022 17:25:19 +0100