Python 3 standard library: collections container data type

1. Collection container data type The collections module contains container data types other than the built-in types list, dict, and tuple. 1.1 ChainMap searches multiple dictionaries The ChainMap class manages a sequence of dictionaries and searches for values associated with keys in the order in which they appear. ChainMap provides a lot of & ...

Posted by xphoenixx on Wed, 19 Feb 2020 22:00:54 -0800

Application of C + + binary tree: heap and its operation

This paper is a study note of data structure of Zhejiang University. Heap is also known as priority queue. The entry and exit of elements in the queue are based on the principle of first in first out, while in the heap, the priority of elements is taken out according to the size. The most commonly used ...

Posted by soulmasta on Wed, 19 Feb 2020 21:51:30 -0800

Python advanced: data visualization with Matplotlib

brief introduction When editing CSDN, the picture is easy to be missing. You can pay attention to "lazy programming" to get a better reading experience. Next, we use Matplotlib to visualize data. First, we continue to use Matplotlib to draw images. The official account can reply to data2 to ...

Posted by netman182 on Wed, 19 Feb 2020 18:53:39 -0800

LeetCode brush questions -- dichotomy

69. Square root of X Implement the int sqrt(int x) function. Calculates and returns the square root of X, where x is a non negative integer. Because the return type is an integer, the result only retains the integer part, and the decimal part will be rounded off. Example 1: Input: 4 Output: 2 Example ...

Posted by pdn on Wed, 19 Feb 2020 04:12:22 -0800

Common text processing tools

Blog Outline:1) grep command2) cut command3) sort command4) uniq commands5) tee command6) diff command7) paste command8) tr command Note: Neither of the following tools will modify the source file, only output the results! 1) grep command grep is a powerful text search tool that uses regular expressions to search for text and print matching ...

Posted by quark76 on Tue, 18 Feb 2020 08:32:01 -0800

NEFU freshman winter training 12 (set) 2020.02.18

Summary Maybe yesterday's question is less, today's question is a lot more, and also crazy TLE / (ㄒ o ㄒ)\~~ Information No. Title AC/Submit A Mingming random number set 60/101 B K small integer - SET 57/89 C Word memory set map 55/63 D Train dispatching SET 32/67 E Similar number SET s ...

Posted by kcorless on Tue, 18 Feb 2020 03:09:56 -0800

Sorting operation of array

There are many sorting algorithms, including Insertion sort,Bubble sort,Heap sort,Merge sort , select sort, Counting sort,Radix sorting,Bucket sorting,Quick sort And so on. Insert sort, heap sort, select sort, merge sort, fast sort, bubble sort are all comparative sort. They sort by comparing t ...

Posted by ukscotth on Mon, 17 Feb 2020 22:08:01 -0800

Spring cloud zuul service gateway implementation

authentication Next, write a simple authentication The request must carry the token parameter. If there is no token, the request will be rejected among filterType -- filter type, use pre? Type here filterOrder -- filter order. The smaller the value is, the higher the priority is. Here it ...

Posted by Tubbietoeter on Mon, 17 Feb 2020 02:42:43 -0800

Search -- binary sort tree

Binary Sort Tree, also known as binary search tree, has the following properties: if its left subtree is not empty, the value of all nodes on the left subtree is less than the value of its root node; if its right subtree is not empty, the value of all nodes on the right subtree is greater than the va ...

Posted by Mardoxx on Mon, 17 Feb 2020 02:36:45 -0800

Over fitting and under fitting of hands-on deep learning

It has been said that the power of DL lies in its fitting ability. As long as you can give the curve, its equation can be expressed by a set of neural network. However, this set of neural network needs enough data for training, which leads to the concept of over fitting and under fitting. When the neur ...

Posted by cybersurfur on Mon, 17 Feb 2020 02:00:01 -0800