原创 Fabonacci 數列問題

今天面試,被問到求fabonacci數列的第n個數這個問題,當時用O(n)複雜度的迭代方法做出來了,然後面試官繼續問了如何實現O(log(n))的時間複雜度的算法,最後還問了n大概爲多大時結果就會溢出(用unsigned int

原创 Coding練習題-鑽石重量比較

小明陪小紅去看鑽石,他們從一堆鑽石中隨機抽取兩顆並比較她們的重量。這些鑽石的重量各不相同。在他們們比較了一段時間後,它們看中了兩顆鑽石g1和g2。現在請你根據之前比較的信息判斷這兩顆鑽石的哪顆更重。 給定兩顆鑽石的編號g1,g2,

原创 Leetcode168. Excel Sheet Column Title

Probelm Description Given a positive integer, return its corresponding column title as appear in an Excel sheet. F

原创 CS231n Class Notes- lecture11 ConvNets in Practice

這節課主要講了一些在實際使用 CNN 時的技巧,可以加速訓練網絡。很多內容需要圖解,所以我就直接截圖了。所有圖都是從 CS231n lecture 11的課件中截取的。 The power of small filters Th

原创 C++ set and multiset

簡單來說 set 是一組有序數的集合,集合裏的元素沒有重複的,而 multiset 則允許元素重複。因此multiset在一些操作上要注意和set的區別。 定義 template < class T,

原创 Binary search and lower_bound, upper_bound

傳統的二分查找是爲了尋找目標數在一個有序數組中是否存在的問題。返回值爲布爾型變量(true or false)。但是有時候需要知道更多信息,比如如果存在,那麼在數組中該數出現的第一個位置(left most)和最後一個位置的索引是

原创 Dissecting the Camera Matrix

Camera Matrix So, you’ve been playing around a new computer vision library, and you’ve managed to calibrate your c

原创 [論文閱讀]Camera Pose Voting for Large-Scale Image-Based Localization - ICCV2015

這是我在組會上講的文章,當時跟着論文的行文思路來講的,可惜沒能講得很清楚。現在打算用我自己的思路來介紹這篇文章,希望用儘可能易懂的方法來講解清楚。也希望通過博客總結,來進一步提升自己的理解。 ——致我的第一次組會報告 Ima

原创 cs231n - assignment1 - linear-svm 梯度推導

Multiclass Support Vector Machine exercise Complete and hand in this completed worksheet (including its outputs an

原创 cs231n - assignment1 - neural net 梯度推導

Implementing a Neural Network In this exercise we will develop a neural network with fully-connected layers to per

原创 cs231n - assignment1 - softmax 梯度推導

Softmax exercise Complete and hand in this completed worksheet (including its outputs and any supporting code outs

原创 Google gflags usage on windows

gflags 是 google 的開源項目,用來解析程序的命令行輸入參數。傳統的方法是手工解析argv參數,或者使用getopt函數。兩種方法都比較費勁。使用Google gflags可以大大簡化命令行參數處理。下面主要記錄如何在

原创 cs231n - assignment1- k-Nearest Neighbor Classifier 梯度推導

assignment web page k-Nearest Neighbor (kNN) exercise Complete and hand in this completed worksheet (including its

原创 我的C++學習路線

記錄我學習C++的過程。希望對那些想學習C++的人能有一些參考價值。 首先需要說明的是,C 和數據結構我有一點點基礎。 C++ Primer 5th Edition 首先要說明的是,我不是從零基礎學習C++,本科學習學習過C語言

原创 Matlab 設置默認工作路徑

Matlab 設置默認工作路徑 找到 %INSTALLNATION_PATH%MATLAB\R2016a\toolbox\local 下的 matlabrc.m 文件,在文件最後加上一句 cd %YOUR_NEW_PATH%;