Take you through the art of algorithms

What is an algorithm?Isn't the equation unfamiliar?The correct unknown value is obtained by solving the equation.We can simply interpret solving equations as algorithms.Of course, the algorithm is more than that. Don't worry, I'll talk to you. Let's start with two pieces of code: Both pieces of code can be called algorithms because they solve ...

Posted by koddos on Sat, 09 Nov 2019 10:07:20 -0800

The third bullet of MySQL statement -- single table query and multi table query

Part I multi table query Complete syntax of single table query: Select distinct field name from 'table name' where 'filter conditions before grouping' group by 'field name' having 'filter conditions after grouping' order by 'default ascending sort ase|desc' limit display number Execution order of keywords: ** 1,from 2, ...

Posted by *mt on Sat, 09 Nov 2019 08:10:51 -0800

python base (21): exception handling

1. Exceptions and Errors 1.1 Error There are inevitably errors in the program, and there are two types of errors 1.1.1 Syntax Error Syntax error: This kind of error can not pass the python interpreter's grammar detection at all and must be corrected before the program is executed. #Syntax Error Example 1 if #Grammar Error Example 2 def test: ...

Posted by aviavi on Fri, 08 Nov 2019 21:43:42 -0800

Deep Analysis of ForkJoinPool in Dead Javaa Thread Series

(Source code is easier to see on mobile phone's horizontal screen) Note: The java source analysis section is based on the Java 8 version unless otherwise specified. Note: This article divides and conquers thread pool classes based on ForkJoinPool. brief introduction With the development and widespread use of multicore processors on hardware, ...

Posted by sharpnova on Fri, 08 Nov 2019 13:47:32 -0800

0-1 knapsack backtracking algorithm [suitable for beginners, with analysis + Notes]

0-1 knapsack backtracking algorithm [suitable for Xiaobai, with analysis + annotation] Title: using backtracking algorithm to realize 0-1 knapsack, the volume of knapsack is 7 Pack 4 items, the value of which is 9,10,7,4 respectively, and the weight of which is 3,5,2,1 respectively. Please use the backtracking method ...

Posted by phileplanet on Fri, 08 Nov 2019 09:23:35 -0800

Section 1: getting started with Shell Basics

1, format Opening format: ×! / bin/bash Ending format: × $? 2, parameters $ා is the number of parameters passed to the script $0 is the name of the script itself $1 is the first parameter passed to the shell script $2 is the second parameter passed to the shell script $@ is a list of all parameters passe ...

Posted by mapunk on Fri, 08 Nov 2019 08:58:44 -0800

Use of @property decorator in python

[TOC] 1. Raise questions When binding attributes to a class instance, if we expose them directly, it's easy to write, but there's no way to check the parameters, so you can change your performance arbitrarily, even if it's of the wrong type. class Student(object): def __init__(self, score): self.score = score if __name__ == '__ma ...

Posted by CooKies37 on Thu, 07 Nov 2019 18:49:26 -0800

Parallel programming and tasks

Preface In the previous article, we focused on parallel programming, and in this section we continue with task-related knowledge.For better control of parallel operations, we can use the Task class in System.Threading.Tasks.The first step is to understand what a task is - a task represents a unit of work that is about to be completed, either ru ...

Posted by santhosh_89 on Thu, 07 Nov 2019 18:27:06 -0800

RAID 5 for Centos 7 Details and Configuration

1. What is RAID: The full name of the disk array is "Redundant Arrays of Inexpensive Disks, RAID". The English version means: fault-tolerant, inexpensive disk array. RAID can integrate multiple smaller disks into a larger disk device using a single technology (software or hardware); this larger disk function is more than storage; i ...

Posted by kedarnath on Thu, 07 Nov 2019 13:03:26 -0800

Berlekamp-Massey algorithm

Big Blacks Blog:https://blog.csdn.net/qq_39972971/article/details/80725873https://blog.csdn.net/oi_Konnyaku/article/details/85805426https://blog.csdn.net/As_A_Kid/article/details/86286891http://www.cnblogs.com/zzqsblog/p/6877339.html The zzq gangster's template should be the most correct, there is no picture to choose ...

Posted by sanlove on Thu, 07 Nov 2019 07:15:49 -0800