Detailed explanation of ac automata (multi-mode string matching with mismatch pointer)
ac automata is an algorithm used to calculate multiple string matches. As we know,
K
M
P
KMP
KMP realizes the matching of single-mode strings in an ingenious way (using a single string to ask whether the string appears ...
Posted by Hopps on Sat, 20 Nov 2021 14:12:33 -0800
A preliminary understanding of greedy thought
catalogue
1. Distribution issues
2. Interval problem
3. The best time to buy stocks
4. Summary
1. Distribution issues
Title Description:
This kind of problem probably means that there are a group of children and a pile of biscuits. Each child is very hungry. If the size of the biscuit is greater than or equal to the child's hunger, ...
Posted by DfyAnt on Wed, 03 Nov 2021 20:54:24 -0700
Weighted union search set
A basic union search set
There are only two operations for the basic union query set, one is to find ancestors, and the other is to merge
int find(int x)
{
if(x==pre[x]) return x;
else return pre[x]=find(pre[x]);
}
void join(int x,int y)
{
pre[find(x)]=find(y);
}
Two weighted union search set
for weighted concurrent sear ...
Posted by Stevis2002 on Wed, 03 Nov 2021 12:48:17 -0700
Krypton binary
Binary
Title Description
You are an algorithm enthusiast, trying to learn computer knowledge. You know, the most beautiful part of the computer is binary, which you have a deep experience in shape pressure plus o. of course, binary is also very clever when used in co and o, not to mention that nini games can be related to xor. T oday, you ...
Posted by Rigo on Sun, 24 Oct 2021 00:55:43 -0700
Notes on tree chain throwing points
Powered by:NEFU AB_IN
Tree chain subdivision
introduce Divide "tree" into "chain" Pre knowledge
Segment treeTreelike
d
f
s
dfs
dfs or ...
Posted by cyrenity on Sat, 04 Sep 2021 19:44:40 -0700