Zoj_appletransportation (tree DP | minimum cost flow)

Apple Transportation Time Limit: 1000 ms Memory Limit: 32768 KB Problem Description There's a big apple tree in the forest. In the tree there are N nodes (numbered from 0 to N - 1), and the nodes are connected by branches. On each node of the tree, there is a squirrel. In the autumn, some apples will ...

Posted on Mon, 24 Feb 2020 08:56:11 -0500 by trochia

Course design of data structure and algorithm / / Huffman code / decoder

Course design of data structure and algorithm 1, Title: Huffman encoder / decoder 1. Problem description Using Huffman code to communicate can greatly improve channel utilization, shorten information transmission time and reduce transmission cost. This requires that the transmitted data be precoded ...

Posted on Mon, 24 Feb 2020 08:10:15 -0500 by revez2002

Hands on deep learning PyTorch punch 3

1, Data enhancement Large scale data set is the premise of successful application of deep neural network. Image augmentation technology can produce similar but different training samples by making a series of random changes to the training image, so as to expand the scale of training data set. Another ...

Posted on Mon, 24 Feb 2020 08:02:40 -0500 by shibiny

Multithread concurrent thread pool

Multithreading concurrency (1) understanding Java virtual machine JVMMultithreading concurrency (2) understanding ThreadMulti thread concurrent (3) lock synchronized, volatileMultithreading concurrency (4) understanding the atomic class AtomicXX attribute address offsetMultithreading concurrency (5) ...

Posted on Mon, 24 Feb 2020 01:32:09 -0500 by bh

Powerbuckle 739 - daily temperature

This problem is mainly to find the rules. When optimizing, we can use the characteristics of data structure (array and stack). Original question According to the daily temperature list, please regenerate a list. The input of the corresponding position is how long you need to wait, before the temperature ...

Posted on Mon, 24 Feb 2020 01:20:54 -0500 by mjgdunne

Go basic series: Functions -- callback functions and closures

Callback function and closure When a function has the following two characteristics, it can be called a higher-order function: Function can be an argument to another function (typically a callback function) Function can return another function, that is, another function as the return value of this fu ...

Posted on Sun, 23 Feb 2020 07:35:39 -0500 by mike_y

bochs installation and boot loader

Installation of bochs First, enter the command to install the dependencies of several bochssudo yum install gccsudo yum install gtk2 gtk2-develsudo yum install libXt libXt-develsudo yum install libXpm libXpm-devel Then execute su root to enter the password to enter the root administrator identity Next ...

Posted on Sun, 23 Feb 2020 06:00:31 -0500 by eightFX

Oracle complex query

Preparation: start two services of Oracle - database instance service and monitoring service     1, Basic table - department table and employee table 1. sector table drop table dep; create table dep( d_id varchar2(11) primary key not null, d_name varchar2(50) not null, d_remark varchar2(20 ...

Posted on Sun, 23 Feb 2020 03:34:58 -0500 by dennissanche

[str string built-in function] from python

String built-in function – capitalize str.capitalize(): converts a string to uppercase and other letters to lowercase capitalize meaning capitalize(...) | S.capitalize() -> str #Output is a string | | Return a capitalized version of S, i.e. make the first charact ...

Posted on Sun, 23 Feb 2020 03:00:33 -0500 by bigdaddykraven

WHERE clause - filter data

Chapter 6 filtering data Article directory Chapter 6 filtering data 1. Use WHERE clause 2. WHERE clause operator 2.1 check single value 2.2. Mismatch check 2.3 range value inspection 2.4. Null value check 3, summary Simple record - MySQL must know must know - [English] Ben Forta Learn how to u ...

Posted on Sun, 23 Feb 2020 02:38:23 -0500 by fahhem