notes

快速排序与快速选择算法

less than 1 minute read

之所以突然会对这个问题感兴趣是因为,大概一年前,在毫无准备的情况下去参加某互联网公司的面试,被问到了这样一个问题:“给定一个长度为n的数列,如何快速的找出其中第m大的元素。假设m远小于n。”因为对排序和选择算法完全不熟悉,只知道quicksort的时间复杂度应该是,以及从数列中找出最大值的复杂度是 。只好回答最简...

Holder’s and Young’s Inequalities

1 minute read

Classical Case A quick proof of general Holder’s inequality is as follows. First, by Jensen’s inequality, we have for positive and satisfying ,

Log Loss and Multi-Class Hinge Loss (1)

2 minute read

Hinge loss functions are mainly used in support vector machines for classification problem, while cross-entropy loss functions are ubiquitous in neural netwo...

Proof of Stirling’s Formula

less than 1 minute read

Stirling’s formula is very useful in all kinds of asymptotic analysis. Here we present one of many proofs.

On Hoeffding’s Inequality

1 minute read

Hoeffding inequality was first proved in 1963 for independent bounded random variables. It captures the effect of cancellation among independent random varia...

On No Free Lunch Theorem

1 minute read

This note discusses the implications of the celebrated No-Free-Lunch Theorem on kernel SVM, RF-SVM and neural network.