Tuesday, 3 March 2015
The power of spectral techniques
It is quite amazing to think that we can solve \(Lx=b\) even faster than sorting the edges...
Thursday, 22 January 2015
Puzzle
A puzzle given by an office-mate:
There is a polynomial \(p(x) = a_0 + a_1x + a_2x^2 + \dots+a_nx^n\) where \(a_0, a_1, \dots, a_n \in \mathbb{Z}^+\). Knowing only \(n\), you may query the value of \(p(x)\) for any \(x\). The goal is to recover the coefficients with minimal queries.
Sunday, 11 January 2015
Cosmos: A Spacetime Odyssey
傳說中在 imdb 得到很高排名, 最特別的它是紀錄片! (紀錄片在 imdb 也可以 9+ 分一定不簡單)
![]() |
source: wikipedia |
P.S. host 坐的那 spaceship 非常似 Tardis, 而且經常出現 "travel through time and space", 很難不聯想起 Doctor Who 啊
Monday, 22 December 2014
Sunday, 7 December 2014
Quora haqathon 2014
Quora haqathon today, from 11am to 7pm - Pacific standard time! Features 9 problems mixed with tradition algorithm tasks, machine learning and system programming tasks. Link to site.
Ontology
Linearize the tree - each query reduces to "in question q[x...y], how many of them start with prefix p?". Offline query + Partial Sum+ Trie. Linear time.
Wombats
Maximum closure.
Labeler
Use training set to calculate \(\text{Pr}[q_i \in t_k | w_j \in q_i ] \) for all question \(q_i\), topic \(t_k\) and word \(w_j\). Improve using bi-gram.
Duplicate
Use \( \text{Pr}[w \in \text{question_text}_i \text{ and } w \notin \text{question_text}_j ]\) as classifying criteria - 60% accuracy. Consider also \( \frac{\text{view_count}_i }{ \text{view_count}_j } \) improved it to 70%.
Ontology
Linearize the tree - each query reduces to "in question q[x...y], how many of them start with prefix p?". Offline query + Partial Sum
Wombats
Maximum closure.
Labeler
Use training set to calculate \(\text{Pr}[q_i \in t_k | w_j \in q_i ] \) for all question \(q_i\), topic \(t_k\) and word \(w_j\). Improve using bi-gram.
Duplicate
Use \( \text{Pr}[w \in \text{question_text}_i \text{ and } w \notin \text{question_text}_j ]\) as classifying criteria - 60% accuracy. Consider also \( \frac{\text{view_count}_i }{ \text{view_count}_j } \) improved it to 70%.
Subscribe to:
Posts (Atom)