- 博客(7)
- 收藏
- 关注
原创 对ALBERT的理解
ALBERT: A LITE BERT FOR SELF-SUPERVISED LEARNING OF LANGUAGE REPRESENTATIONS Google大大的BERT(https://arxiv.org/pdf/1906.08237.pdf) 在 2018 年年底通过预训练打败了 NLP 上 11 个任务的经典算法;XLNet 在 2019 年提出来通过双向网络的方法超过了 BERT...
2020-04-14 18:54:08 473
原创 同余定理进行大数求模
给出一个大数比如1234687415164641,求其对32的模。运用同余定理解决。 用了以下两个同余定理公式: (A + B) mod M = ( A mod M + B mod M ) mod M (A * B) mod M...
2019-02-21 23:06:09 322
原创 STL之next_permutation()的使用
1.next_permutation()的函数原型 template <class BidirectionalIterator> bool next_permutation (BidirectionalIterator first, BidirectionalIterator last ); 2.使用方法 下一个排列组合存在时,将对序列从first到last-1进行重新排列组合为...
2019-01-23 17:49:40 175
转载 卡特兰数浅析
一、关于卡特兰数 卡特兰数是一种经典的组合数,经常出现在各种计算中,其前几项为 : 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845, 35357670, 129644790, 477638700, 1767263190, 6564120420, 244662670...
2019-01-23 15:34:49 217
原创 C++STL的两种find()函数的使用
第一种,algorithm头文件的find()。 使用方法:find(begin,end,value) 解释:第一个参数是容器或者数组的起始地址(容器.begin()或者数组名),也可以是任意地址,不非法即可;第二个参数是结束查找的地址(容器.end()或者数组名+长度),value是想要查找的字符或者字符串。查找成功将返回迭代器(容器)或者指针(数组),否则返回end()。 第二种,string...
2019-01-14 18:59:32 2124
原创 C++使用stl对字符串排序
一个string,使用sort()函数将其按字典序排序。 代码如下 #include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string str; while(cin>>str){ int len = str.le...
2019-01-13 16:45:32 1021
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人