Arrays in Java
In Java, array is a kind of reference data type. It is the simplest compound data type and a collection of ordered data. Each element in the array has the same data type. You can use a uniform array name and different subscripts to determine the unique elements in the array.
According to the dimension o ...
Posted by Ruiser on Fri, 14 Feb 2020 03:23:36 -0800
Multiarmed bandit and epsilon grey algorithm in reinforcement learning, with python implementation
Recently, I read the article "a dynamic clustering approach to data driven assessment personalization" on Management Science, in which I mentioned a multiarmed bandit model. I want to study it in depth, but when I check various websites, there is no introduction about this problem in Chinese, ...
Posted by busyguy78 on Fri, 14 Feb 2020 02:54:14 -0800
Basic data structure example: stack, queue, linked list, data, dictionary, tree, etc
CatalogData structure:
Stack
queue
Linked list3.1 one way list3.2 two way list3.3 reversal of one-way linked listarrayDictionary implementation principle5.1 hash table5.2 hash functiontree6.1 binary tree, full binary tree, complete binary tree6.2 hash tree6.3 B-tree/B+tree
Stack stackStack, also known as stack, is a linear table with limited op ...
Posted by Kingy on Fri, 14 Feb 2020 00:51:27 -0800
Data structure (tree)
1, Binary sort tree
Definition: the value of the left subtree is less than the value of the parent node, and the value of the right subtree is greater than the value of the parent node. All nodes meet this definition.
Delete: in three cases
① If the deleted node is a leaf node, you can delete it direc ...
Posted by CBaZ on Fri, 14 Feb 2020 00:36:57 -0800
Zzuli? OJ? 1196: counting stars (II) (special subject of structure)
Zzuli? OJ? 1196: counting stars (II) (special subject of structure)
Knowledge point: using structure array parameter, sort function
Title Description
One day, Xiaoming sat in the yard and counted the stars. Gardon asked him to count the number of stars in the sky on the same straight line. There are too many stars in the sk ...
Posted by Jeremiah on Thu, 13 Feb 2020 08:51:01 -0800
DL Python notes task02: text preprocessing; language model; cyclic neural network foundation
Text preprocessing
Text is a kind of sequence data. An article can be regarded as a sequence of characters or words. This section will introduce common preprocessing steps of text data, which usually includes four steps:
Read in text
participle
Build a dictionary to map each word to a unique index
Co ...
Posted by Jeroen Oosterlaar on Thu, 13 Feb 2020 02:04:01 -0800
poj1475/acwing174 push box
The idea of this question is quite new, but it is not so disgusting compared with the realization
Because it is required to move the box less, bfs can be used. Triple (x,y,dir) is used to indicate that the box is in (x,y). dir is the direction of the box where people are
Because people are required to m ...
Posted by Otiose Dodge on Wed, 12 Feb 2020 20:33:59 -0800
Shell programming condition test if, for, case, select, while
shell programming condition test
Shell Conditional Judgment InitialShell branch if statementShell Loop for StatementShell branch case statementSelect List Select LoopShell loop controls continue,break,exitShell loop while statement
Shell Conditional Judgment Initial
[] Represents a conditional test, ...
Posted by guxin1999 on Wed, 12 Feb 2020 18:42:12 -0800
Java lambda expression understanding
brief introduction
As a new feature of java8, lambda expression is oriented to function programming, which makes the code more concise and improves the programming efficiency. As a developer, we should not only learn to use it, but also understand the operation principle behind it
lambda general use ...
Posted by ntohky14 on Tue, 11 Feb 2020 23:45:23 -0800
Natural and customized sorting of TreeSet
Natural and customized sorting of TreeSet
TreeSet is an ordered set
TreeSet supports two sorting methods, natural sorting and custom sorting. The default is natural sorting
TreeSet: the data structure of red black tree is used in the bottom layer. Red black tree is a specific type of binary tree, with ...
Posted by neofox on Tue, 11 Feb 2020 05:21:09 -0800