Foundation Dynamic Planning

- Restore content to start Dynamic Programming Dynamic Programming Methodology _The essence of a computer is a state machine. All the data stored in memory constitute the current state. CPU can only calculate the next state by using the current state (don't tangle with external storage such as hard disk, even if they consider that they just exp ...

Posted on Sat, 27 Jul 2019 07:49:15 -0700 by algarve4me

What is data sharing between threads? How to realize data sharing among threads?

Data Sharing between Threads 1. Why to realize data sharing among threads 1. Thread runs in parallel by default 2. What is serial operation? 2. How to realize data sharing among threads (principle of multi-threading synchronization) 1. Why can multi-threaded serial operation be realized through sy ...

Posted on Sat, 27 Jul 2019 06:51:42 -0700 by Phrank

Drawing Skills in Reinforcement Learning Experiments-Drawing Pictures in paper Using seaborn

Drawing Skills in Reinforcement Learning Experiments-Drawing Pictures in paper Using seaborn Parameter data can be transferred to ndarray or pandas when using seaborn to draw a polyline map, and other parameters corresponding to different source data are slightly different. 1. ndarray Let's start wit ...

Posted on Sat, 27 Jul 2019 06:31:23 -0700 by evilcoder

Self-taught Java--day_17 thread pool, Lambda expression

1. Thread Pool 1.1 Interthread Communication When multiple threads execute concurrently, by default the CPU switches threads randomly. When we need multiple threads to complete a task together and we want them to execute regularly, some coordinated communication is needed between the threads to help ...

Posted on Fri, 26 Jul 2019 18:35:03 -0700 by moriman

Wechat applet user authorizes bullet window to obtain user information. When the user refuses authorization, guide the user to re-authorize

When we develop small programs, if we want to obtain user information, we need to obtain authorization. If the user refuses authorization by mistake, how can we guide the user to re-authorize correctly? Today I'm going to talk about how to guide user authorization correctly. Old rules, first look at ...

Posted on Fri, 26 Jul 2019 06:02:28 -0700 by lhaynes

Design Mode - State Mode - Take the Weapon State of Shooting Game as an Example

Hyperlink: A series of case studies of common Java design patterns - Introduction Reference: HeadFirst Design Patterns 1. On State Patterns Command mode is a behavioral mode. Command mode: Encapsulate a request as an object so that you can parameterize customers with different requests; queue or log ...

Posted on Fri, 26 Jul 2019 00:27:22 -0700 by misterph

Back Propagation: A Back Propagation Method for Understanding Neural Networks

From: Charlotte77 When it comes to neural networks, you should be familiar with this graph. This is the basic structure of a typical three-layer neural network. Layer L1 is the input layer, Layer L2 is the hidden layer, Layer L3 is the hidden layer. We now have a pile of data {x1,x2,x3,... The output i ...

Posted on Thu, 25 Jul 2019 23:51:25 -0700 by praveenbabur

Notes on Java Concurrent Programming - Excutors Framework for J.U.C: ScheduledThreadPoolExecutor

1. Introduction to Scheduled ThreadPoolExecutor stay executors framework design concept In this section, we have mentioned an Executor that can delay/periodically schedule tasks, which generally implements ScheduledExecutorService.ScheduledExecutorService introduces Future mode based on ExecutorService, which allows tasks to be scheduled on t ...

Posted on Thu, 25 Jul 2019 09:57:57 -0700 by XenoPhage

gRPC Source Details Configured Structures

Detailed grpc source structure DialOptions DialOptions is the most important part and is responsible for configuring the selection for each rpc request. structure Let's look at this structure first link // dialOptions configure a Dial call. dialOptions are set by the DialOption // values passed to Dial. type dialOptions struct { u ...

Posted on Thu, 25 Jul 2019 09:52:54 -0700 by w4designs

JavaScript Functional Programming

1: Basic concepts Functional programming is a programming way of thinking, not some grammatical rules. It encapsulates functions for high reusable functional codes to achieve high reusability (the main purpose). Functional programming features: Function is the first class citizen, because it is called functional programming, so function is the ...

Posted on Wed, 24 Jul 2019 23:20:26 -0700 by Eric_Ryk