Here is a note of Distance dependent Chinese Restaurant Processes
文章链接http://pan.baidu.com/s/1dEk7ZA5
1. Distance dependent CRPs
In the traditional CRP ,the probability of a customer sitting ...
题目描述
You have an array: a1, a2, , an and you must answer for some queries.For each query, you are given an interval [L, R] and two numbers p and K. Your goal is to find the Kth closest distanc...
matrix cells in distance order
we are given a matrix with r rows and c columns has cells with integer coordinates (r, c), where 0 <= r < r and 0 <= c < c.
additionally, we are given a ...