Code duplication experiment (deep algorithm experiment 4) report + code

Resources for all experiments Link: https://pan.baidu.com/s/1lukZRM3Rsd1la35EyyJcvg Extraction code: iv72 catalog Write in front Problem description Description of algorithm principle for solving problems Solving two lines of code similarity: LCS LCS state transition equation: LCS question: the a ...

Added by noppie on Sat, 27 Jun 2020 12:49:27 +0300

Python's advanced approach: extracting official account background data and data visualization

The official account is rich in data statistics, but there may still be no statistical indicators that I want. For example official account official account is not high but the reading rate is very high. Can I draw a scatter map according to the reading rate of each article in my official account to sho ...

Added by kubis on Sat, 27 Jun 2020 10:23:27 +0300

[Python basics] day6 - set

set It is the basic data type of python to combine different elements to form a set Properties of the collection: De duplication, a list programming set, will automatically de duplication Relation test: test the intersection, difference, union and other relations between two sets of data It d ...

Added by ddrummond on Fri, 26 Jun 2020 11:33:31 +0300

Finding a few small math problems for ReentrantReadWriteLock is enough

Preface Article Java AQS Queue Synchronizer and ReentrantLock Application This paper introduces the implementation of AQS exclusive acquisition of synchronization state, and illustrates how ReentrantLock customizes synchronizer mutually exclusive lock. Article Java AQS Shared Obtain Synchronization Status and Semaphore Application Analysis In ...

Added by hank9481 on Wed, 24 Jun 2020 05:01:25 +0300

Compilation and deployment of ceph luminous version

1, ceph L version codeDownload github, omit2, Change do_cmake.sh file For the comment line, add the following: #cmake -DBOOST_J=$(nproc) $ARGS "$@" .. cmake -DCMAKE_C_FLAGS="-O0 -g3 -gdwarf-4" -DCMAKE_CXX_FLAGS="-O0 -g3 -gdwarf-4" -DBOOST_J=$(nproc) $ARGS "$@" .. Interpretation of the above modifications: CMAKE_C_FLAGS = "- O0 -g3 -gdwarf ...

Added by boblang on Tue, 23 Jun 2020 12:57:04 +0300

Alternative to Swagger

Today, I will give you an interface document generator, JApiDocs. swagger must have been used by everyone. It's very convenient and powerful. If you want to say what's wrong with swaager, it must be that annotations are more cumbersome to write. If I say that there is a tool that can generate documents without comments, are you excited? He is o ...

Added by wildmalc on Mon, 22 Jun 2020 05:08:54 +0300

Let your code tell its story

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! Now it's easy to manage the state in the React functional component with Hooks. I've written about "using custom Hooks as a service" and "functional programming ...

Added by stukov on Tue, 16 Jun 2020 08:37:36 +0300

Spring series. AOP use

AOP introduction Using the object-oriented method can organize the code well, and also can realize code reuse in the way of inheritance. However, there will always be some duplicate code in the project, and it is not convenient to use inheritance methods to reuse and manage them, such as general log printing, transaction processing and security ...

Added by dessolator on Tue, 16 Jun 2020 05:58:28 +0300

Summary of method parameter modification in java

catalog Overall code String and basic type Object, container class, array summary Overall code package test.t05new; import java.util.ArrayList; import java.util.Arrays; public class Test9 { public static void main(String[] args){ //test String String str = "value"; ...

Added by eddjc on Mon, 15 Jun 2020 10:56:52 +0300

Notes on Python Programming: from introduction to practice

Learning notes from "Python Programming: from introduction to practice" (by Eric Matthes of the United States). Mainly for Python 3. Python uses indentation to determine the relationship between a line of code and the previous line of code. In the previous example, the lines of code that d ...

Added by cli_man on Sun, 14 Jun 2020 06:59:49 +0300