原创 1.12.07:機器翻譯(模擬題)

鏈接:http://noi.openjudge.cn/ch0112/07/ 太久沒打代碼了,連queue沒有iterator都忘了! #include<bits/stdc++.h> using namespace std; vector

原创 NOI 1.6.10:大整數加法(高精度加法,模板)

鏈接http://noi.openjudge.cn/ch0106/solution/20690094/ #include<bits/stdc++.h> using namespace std; char s1[201],s2[201];

原创 字符串函數總結

一.strncmp 下面是 strncmp() 函數的聲明。 int strncmp(const char *str1, const char *str2, size_t n) 參數 str1 -- 要進行比較的第一個字符串。 str2

原创 FIR濾波器的設計

設置參數的時候Fstop最好提前一些真的要濾除的波形。    int fs=48000;    double w1=2*pi*4000,w2=2*pi*20000; sine[i]=sin(w1*i*1.0/fs)+sin(w2*i*1

原创 NOI1.7.34:迴文子串(字符串,暴力判斷)

鏈接http://noi.openjudge.cn/ch0107/34/ #include<bits/stdc++.h> using namespace std; bool judge(string s) { int n=s.size

原创 激活函數特點分類

原文鏈接:https://blog.csdn.net/qq_23304241/article/details/80300149 sigmoid和tanh是“飽和激活函數”,而ReLU及其變體

原创 希爾排序學習

希爾排序講解詳見:https://blog.csdn.net/weixin_37818081/article/details/79202115 https://blog.csdn.net/ningmengbaby/article/deta

原创 STM32高級控制定時器(TIM1和TIM8) 關於死區時間的計算方法

轉自https://www.cnblogs.com/ownDefine/p/10806125.html TIM1  和TIM8  剎車和死區寄存器(TIMx_BDTR):     死區時間控制寄存器位:   首先,理解這些計算位的含意

原创 卡爾曼濾波入門

學習卡爾曼濾波看了4天的文章,硬是沒看懂.後來找到了下面的文章一下就看懂了. 我對卡爾曼濾波的理解, 我認爲,卡爾曼濾波就是把統計學應用到了濾波算法上.  算法的核心思想是,根據當前的儀器"測量值" 和上一刻的 "預測量" 和 "誤差",

原创 STL一些常用性質(priority_queue,sort,upper_bound,set結構體)

1.priority_queue結構體重載 #include<bits/stdc++.h> using namespace std; struct node { int t; node(){ } node(int a):t(a)

原创 T-SNE( t-distributed stochastic neighbor embedding t-分佈隨機鄰域嵌入)

學習資料詳見http://www.datakit.cn/blog/2017/02/05/t_sne_full.html#11%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86 T-SNE的作用:即將高維數據xi轉化爲

原创 Build Tree

  #include <bits/stdc++.h> #define ll long long using namespace std; ll s[200010]; int nm[200010]; ll sum[200010]; ll

原创 2019湘潭邀請賽 Chika and Friendly Pairs(莫隊+樹狀數組)

解題思路:莫隊的複雜度O(mlogn),然後更新,查詢樹狀數組的複雜度O(logn),最終複雜度O(mlog^2n) #include<cstdio> #include<cstring> #include<algorithm> #inc

原创 DQN理解

參考了 這位莫煩大佬:https://morvanzhou.github.io/tutorials/machine-learning/reinforcement-learning/4-4-gym/

原创 HDU4804(插頭dp/輪廓線dp)

題意:題意:給定一個圖,0是不能放的,然後現在有1X1和1X2方塊,最後鋪滿該圖,使得1X1使用次數在C到D之間,1X2次數隨便,問有幾種放法。 解題思路:對比了一下網上的寫法,花了1500Ms,我的花了3000ms。主要還是因爲位運算多