Kruskal algorithm & & joint search set
now let's talk about another method for finding the minimum spanning tree - Kruskal algorithm. We know that there can be no loop in the minimum spanning tree, so we skip when we encounter the edge forming the loop, but how can we until the loop is formed? At this time, we need to judge whether the two vertices are connected. ...
Added by stockdalep on Fri, 11 Feb 2022 14:19:33 +0200
Use of React hooks
0. Create react project
Now create a react project using the create react app, the official scaffold of react:
Step 1: install scaffold NPM install - G create react app globallyStep 2: switch to the directory where you want to create the project and use the command: create react app react_ projectStep 3: switch the directory to the projec ...
Added by Nulletz on Fri, 11 Feb 2022 14:02:27 +0200
Use selenium+chromedriver+xpath to crawl dynamically loaded information
Use selenium+chromedriver+xpath to crawl dynamically loaded information
Use selenium to crawl dynamically rendered pages. Selenium is a browser automation testing framework and a tool for Web application testing. It can run directly in the browser and drive the browser to perform specified actions, such as click, drop-down, fill in data, del ...
Added by dujed on Fri, 11 Feb 2022 13:56:32 +0200
[Java basic dry goods] analysis of ArrayList source code
All the code in this article comes from jdk1 eight
Introduction to ArrayList
public class ArrayList<E> extends AbstractList<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable
ArrayList inherits AbstractList and implements list, randomaccess, Cloneable, Java io. Serializable interface
java.lang.Ob ...
Added by stickman373 on Fri, 11 Feb 2022 13:48:22 +0200
Simple discussion on decoration mode
Simple discussion on decoration mode
1. Brief description of decoration mode
Decoration pattern is a design pattern used to replace inheritance. It dynamically adds responsibilities to objects without defining subclasses, and uses the association relationship between objects to replace the inheritance relationship between classes. It reduc ...
Added by seanpaulcail on Fri, 11 Feb 2022 13:32:53 +0200
The way of advertising for programmers alone? Five minutes will teach you to show love to the goddess with code
Valentine's Day is coming, and the annual abuse of Wang opera is coming once again. What is lipstick, Bing dwen dwen, Xiao Bing Bai, ice Pier? It's really low. We have our own set of tools to express our thoughts.
Want to see what kind of sparks can the most rational code and the most romantic advertisement collide? Next, sister Yien will ...
Added by SnakeO on Fri, 11 Feb 2022 13:30:00 +0200
Python Excel Writer: create, write (text, number, formula), modify, save, apply settings, merge - Unmerge cells, etc
With the help of openpyxl module, we can also write excel files in python.
This process is a bit similar to reading Excel spreadsheets in python.
Using python Excel writer, we will create an excel worksheet and write text, numbers and formulas in cells.
After modification, we will save the workbook.
We will also add and delete worksheet ...
Added by seby on Fri, 11 Feb 2022 13:22:13 +0200
AVL tree - balanced binary tree
catalog:
I Concept & principle
Previously, we understood the binary search tree, but we found that if the data is orderly or close to orderly, the binary search tree will degenerate into a single tree
AVL tree is a balanced binary tree. It just adds a balance factor to the binary search tree to form the current balanced bi ...
Added by cbrknight on Fri, 11 Feb 2022 13:19:17 +0200
[Android advanced notes] Hot fix (code, resources, dynamic link library)
1. Thermal repair
1.1. effect
Serious bugs need to be solved immediately without repackaging and putting on the shelf.Solve the problem that the version upgrade rate is not high, and the Bug will always affect users who do not upgrade the version.Realize short-term version coverage of small functions, such as festival activities.
1. ...
Added by ValdouaD on Fri, 11 Feb 2022 13:17:27 +0200
Word2vec (skip gram and CBOW) - PyTorch
Word vector is a vector used to express the meaning of words, and can also be regarded as the feature vector of words. The technology of mapping words to real vectors is called word embedding.
1, Word embedding (Word2vec)
The unique heat vector can not accurately express the similarity between different words. word2vec is proposed to so ...
Added by j0n on Fri, 11 Feb 2022 13:14:28 +0200