目录 LSTMs网络架构 LSTM的核心思想 遗忘门(Forget gate) 输入门(Input gate) 输出门(Output gate) LSTMs是如何解决长程依赖问题的? Peephole是啥 多层LSTM 参考资料 长短期记忆网络通常称为LSTMs,是一种特殊的RNN,能够学习长期依赖 ...
分类:
Web程序 时间:
2020-07-15 01:19:03
阅读次数:
113
D.树上求和 给你一棵根为1的有N个节点的树,以及Q次操作。 每次操作诸如: 1 x y:将节点x所在的子树的所有节点的权值加上y 2 x:询问x所在子树的所有节点的权值的平方和,答案模23333后输出 做法倒是好想(但是尽量用结构体数组,不然不好写,原本没有结构体找bug好久,然后又改写的),假设 ...
分类:
其他好文 时间:
2020-07-15 01:12:25
阅读次数:
74
只需要把两个串拼接起来,之后求一下后缀数组求可覆盖最长重复子串模板即可 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<string> using namespace std; ty ...
分类:
编程语言 时间:
2020-07-15 01:12:09
阅读次数:
72
该算法学习来自 b站 示例代码 1 输出的访问顺序与输入相反 #include <bits/stdc++.h> #define LL long long #define Pi acos(-1.0) #define INF 2147483646 #define eps 1e-9 #define MS ...
分类:
其他好文 时间:
2020-07-14 21:49:52
阅读次数:
72
class Solution { public int longestConsecutive(TreeNode root) { dfs(root); return res; } private int res = 0; public int[] dfs(TreeNode root) { // 以ro ...
分类:
其他好文 时间:
2020-07-14 18:25:06
阅读次数:
49
###基本数据类型:整型和浮点数 ####int 1.使用变量标识存储的数据 2.宽度(width)用来描述存储数据时用的内存量,char,short,int ,long ,long long (C++11新增)宽度递增,每种又都含无符号数与有符号数。 3.头文件 climits 定义了符号常量来表 ...
分类:
编程语言 时间:
2020-07-14 13:22:05
阅读次数:
64
Java 提供两种不同的类型:引用类型和原始类型(或内置类型)。比如:Int是java的原始数据类型,Integer是java为int提供的封装类。Java为每个原始类型提供了封装类,常见的原始与对应的封装类如下: 原始类型 封装类 boolean Boolean char Character by ...
分类:
编程语言 时间:
2020-07-14 01:02:09
阅读次数:
101
typedef long long ll; typedef unsigned long long ull; #define maxn 1005 struct My_Hash { ull base=131; ull p[maxn],ha[maxn]; void Insert(char s[]) { i ...
分类:
其他好文 时间:
2020-07-14 00:58:42
阅读次数:
62
题目链接:https://codeforces.com/contest/1380/problem/C 题意 给 $n$ 个数分组,要求每组的最小值乘以该组数的个数不小于 $x$ 。 题解 从大到小依次分即可。 代码 #include <bits/stdc++.h> using ll = long l ...
分类:
其他好文 时间:
2020-07-14 00:45:36
阅读次数:
83
(1)、entity(实体)entity的意思就是实体的意思,所以也是最常用到的,entity包中的类是必须和数据库相对应的,比如说:数据库有个user表,字段有long类型的id,string类型的姓名,那么entity中的user类也必须是含有这两个字段的,且类型必须一致。不能数据库存的是lon ...
分类:
其他好文 时间:
2020-07-14 00:35:14
阅读次数:
72