Posts

Showing posts with the label Mathematica

Corsis Research

Image
2011 - Logo Solidity, growth, and new dimensions!

Words that are Hard to Say - Reverse Video Search with Mathematica and TinEye

Image
It all started with this link:  http://www.facebook.com/video/video.php?v=150827548298158 . My brother wrote to me saying he had seen this movie trailer and would like to watch it but the only link he had was of this facebook video which had no names mentioned. I had a simple idea: extract a given number of frame images use TinEye to look for pages using similar images I used Mathematica to extract the frames. Then, using TinEye, we performed a reverse image search on certain frames we picked manually. http://www.tineye.com/search/5728ec915156cc8f0568d27d5109bd9b9c79cbf9/ http://www.tineye.com/search/6a97500eef0bc33220555e02a8bd1f5500157a6e/  (here we actually got the result!! but overlooked it) http://www.tineye.com/search/b2ecfa195ca5bc2883dcc63e53e2b307d3b739a2/ http://www.tineye.com/search/02b352b008c9ff144695745a630e0c3a30d492e3/ http://www.tineye.com/search/0f748c782fc992ddd8ac5cd8b5bfec323a933048/ http://www.tineye.com/search/18c255ad6a07e6a1a3f128d2ef942393a47...

Hash Tables in Mathematica

Image
This week, after downloading citing and related paper numbers of around 50.000 papers that were presented as results to various simple searches in PubMed, we wanted to have a way to find out most cited authors. Both extremely new to Mathematica, we were yet to see anything that looked or behaved like hash tables so our first approach looked like this: recordsOfAuthor[author_]:= Select[ records, Composition[MemberQ[#, author]&, authorsOf] ] where records were a list of XMLElement s containing EndNote X3 records (these roughly correspond to PubMed search results). Now I am not the guy to immediately understand the O-complexity of any given code, yet the first thing I had told my friend after we had finished downloading the citation numbers and right before we started coding the rest of our analysis tools was that we definitely needed to either find out how to use hash tables in Mathematica or do the whole thing in another language, otherwise we might have some headache. ...

PageRanking in Mathematica

Image
In the " Advanced Topics in Information Retrieval " course I'm taking this term, we had a light introduction to PageRank algorithm and I wanted to redo the relevant slides and solve some exercises in Mathematica - which I happened to learn while providing programming support to my best friend in her endeavor of mathematical modeling and simulation of drug resistance in infectious diseases !. Here it is as PDF and Mathematica Notebook ! It's truly amazing what you can achieve with Mathematica with tiny amounts of code. I find the selection of functions provided in version 7 and their implementations to be stunning examples of programming done right .