Rack | rrenaud | Rob | Robert Renaud's LiveJournal
[Most Recent Entries]
[Calendar View]
[Friends]
Below are the 20 most recent journal entries recorded in
Rob Renaud's LiveJournal:
[ << Previous 20 ]
| Wednesday, August 20th, 2008 | | 11:48 pm |
Regina Spektor is amazing | | Tuesday, August 12th, 2008 | | 11:57 am |
[Gamers-ny] Rob "Crackhead" Renaud Wins RftG World Championship, Positively Reinforces Addiction Rob's reign as world-champion was, however, short-lived. Peter Schmitt, yesterday, with his masterful employ of the dreaded Galatic Federation / Trade League combo, served Rob a slice of humble pie. The price for this delicious mocel of baked good: Rob's RftG World Championship Belt. Down, but not out, Rob has pledged to remain addicted to RftG to the exclusion of his hair's kemptness.
Games Night. 6 PM. 5BB. RftG Intercontinental Championship up for grabs. No hitting other players with metal chairs please.
- Ross Fairgrieve Of course, it wasn't a title match. For that, only next year's World Boardgaming Championship will suffice. | | Monday, June 23rd, 2008 | | 11:53 pm |
A favorable ratio I am not looking, and even if I was, perhaps a Kimya Dawson/Ani DiFranco concert isn't the best place to find straight women, but this is impressive. These are people who have confirmed they are going to the concert on iLike. | | Friday, April 18th, 2008 | | 1:29 am |
Amazon MP3 download service Has anyone tried it? I just bought Jaymay's Autumn Fallin', mostly on the strength of the single "Gray or Blue." The Amazon download service is kind of weird, they insist you download a (proprietary, but at least one exists for Linux) client to download the songs, and then they won't let you redownload songs you've purchased. But at least you get unencumbered mp3s. Oggs would have been nice, but I guess you can't ask for too much. | | Friday, March 21st, 2008 | | 3:09 am |
Travelling salesman, xkcd, and a month old reddit post. From a reddit post I made a month ago. There are n! paths in a graph of size n. I can find the optimal TSP solution in O(n^2 2^n) time. Therefore, it is possible to do better than examine every path to find a TSP solution.
http://www.algorithmist.com/index.php/Traveling_Salesperson_Problem
And today's xkcd comic.  Suspicious? I just wish I had a modicum of artistic ability, I swear I've got about five ideas for good xkcd style comics. | | Saturday, March 8th, 2008 | | 12:19 am |
Hidden public information in board games, you suck Chess and go are two great games, they have no hidden information. Ingenious is a great game with no hidden public information. Simon is a terrible game. Board game designers, every time you make your games include hidden public information, you make your games less like chess and more like simon. This is clearly a step in the wrong direction. Why, oh why do you do this? Remembering things is not fun. Making informed decisions between two options is. Stop making memory necessary for informed decisions. Please! El Grande, I am looking at you.
Will anyone take the position that hidden public information is actually a good thing? | | Monday, January 28th, 2008 | | 11:40 pm |
February, month of the 33rd floor walkup? I am debating whether I should try going the month of February without using an elevator*. I figure it would be a good source of mandatory exercise, and it would create some fun stories. Much like walking 4.5 miles (and 4.5 miles back) from Manhattan to Brooklyn over the Manhattan Bridge just for dinner is both good story and good exercise.
* I will use the elevator if I am with other people, or carrying skis. Newport has this stupid policy that the entrance to the stairs is locked going in, so I'll have to wait for the elevator and get out on the second floor anyway. This is a big disincentive to taking the stairs. | | Monday, January 21st, 2008 | | 1:18 am |
The greatest song ever So my sister complained that I haven't posted in two weeks. This is what you get. The Chelsea Hotel Oral Sex Song by Jeffrey Lewis. The youtube link has poor audio and will force you to sit through annoying banter for a minute and a half, but you'll see his "low budget video." Here is a link to recording the song, which is much better quality. Okay, so this isn't the greatest song ever. Hell, it's probably terrible. But I am going to see him live at the Mercury Lounge anyway. | | Sunday, January 6th, 2008 | | 2:59 am |
The right way to understand repeated squaring So, I wish I could say I was over this, but I am still having bouts of sadness and self-induced frustration. But at least I am having dreams about algorithms, which you know, kind of rocks. Even if my ability to reason in my dreams is laughably bad. In my most recent dream, I was arguing in a classroom about the "right" way to understand repeated squaring. This was the argument that I wanted to make, but failed to express clearly in my dream. I wrote most of the algorithmist article on repeated squaring awhile ago. The way I used to understand repeated squaring is explained by example in the write up. It basically comes down to writing the exponent in binary, accumulating the appropriate terms for each position the binary expansion of the exponent by repeatedly squaring the last position, and then finally multiplying out all the terms where there is a bit set. This works and provides some insight into how the algorithm works. However, this is the wrong way to understand the algorithm. The right way is expressed beautifully by this equation.  What does the first part equation say?  Well, it says divide the problem into problem of approximately half the size. This smaller problem can be solved recursively. The division here is the C-style truncating integer division. The square then uses the information from the subproblem to compute the larger problem. The last part of the equation,  Simply handles the case that the division truncated exponent and we would have otherwise lost a multiple of the base. On a technical note, from either view of the algorithm, it's pretty easy to see that the number of total number of multiplications required is no worse than 2lg(y). What is the key difference between the two views of the algorithm? The first is iterative, understanding the computation involves understanding every minute detail of the accumulation loop and it's relation to the binary expansion of the exponent. The second view uses recursion to leverage abstraction. Instead of understanding the whole process, you simply need to understand how to make the problem smaller and how to put the pieces together on a high level. There is really a parallel here between iterative and functional programming. Ironically, I am coming out on the functional programming side. So why is the second view better than the first view? The higher level, more abstracted view is much easier to generalize. Instead of computing x^y efficiently, let's consider the problem of computing a^b * x^y. Let n = max(b, y). This can be done straight-forwardly with two applications of the repeated squaring algorithm in 4lg(n) + some constant k multiplications. However, a modified algorithm can solve the problem with 2lg(n) + k multiplications. Credit for this problem goes to my sister's "Reasoning about Computation" class. It's the best class I never took. Sigh, sometimes I wish I did CS at Princeton.How do you do it? Here is some empty space in case you want to try to figure it out yourself. Hint: Try to use divide and conquer. Well, to compute a^b * x^y, first compute a^(b/2) * x^(y/2) recursively. Now square it. There are just 4 cases depending on the truncation of b and y. If b and y were both truncated, we need an additional multiple of a * x, which can be precomputed ahead of time for cost of a single multiplication at this recursive step. Otherwise, if only b was truncated, we just need an additional multiple of a. Likewise, if only y was truncated, we need an additional multiple of x. Otherwise, no additional multiplications are needed. Simple, elegant, clever. Gotta love it. Exercise for the readers: Further generalize the algorithm. Show how to compute a_1 ^ b_1 * a_2 ^ b_2 * ... a_j ^ b_j in 2 lg(n) + 2^j + k multiplications, where n = max(b_1, b_2, ... b_j) and k is a constant. I spent quite a bit of time trying to solve this problem, mostly stuck because I was trying to use the first understanding of the problem and I couldn't see how to leverage the binary expansion of both exponents simultaneously. | | Tuesday, January 1st, 2008 | | 7:56 pm |
Something is wrong with New York So I log into facebook and see this. There is something wrong with New York when Coldplay is as popular as entire music genres. | | Monday, December 31st, 2007 | | 3:48 am |
What to do when you can't sleep? Why not attempt to write proofs about computable numbers? I guess I'll see if I really understood my formal languages class. But anything labeled a paradox is probably pretty tricky, so I am not too confident that I right. Edit: Apparently, I am good enough to write correct proofs without sleep ;). | | Sunday, December 30th, 2007 | | 10:11 pm |
"Ask me a question" ... :( Current Mood: sad | | Wednesday, December 26th, 2007 | | 1:22 am |
A proof I will never forget: An algorithms story Many moons ago, I was taking computer science 344, Design and Analysis of Computer Algorithms at Rutgers. The simplicity and beauty of the subject matter was unmatched by anything else I'd studied except Newtonian mechanics, and algorithms, being based on mathematical formalisms rather than the messy physical universe, actually have the nice property of not being wrong. We were studying median finding and sorting. The professor asked if we could come up with an algorithm to determine if an array of n elements had no duplicates using only comparisons in better than O(n log n) time. This is a classic problem in Computer Science, dubbed element uniqueness. Surely, as a professor of theoretical computer science, he knew this was impossible. I, however, did not know it was impossible. I had even come up with an algorithm that I thought worked. I sent an email to the professor containing my algorithm. I omit the email from the body of this post to save myself embarrassment, but needless to say it was clearly wrong in retrospect. He told me to present the algorithm in class, knowing I was attempting the provably impossible. So what happens? I get up in the front of class and present my bogus algorithm. The professor asks the students if anyone sees anything wrong with the algorithm and then someone comes and points out how it doesn't actually work. I make an ass out of myself. Fast forward to my latest semester at NYU, where I decide to take Fundamental Algorithms. This is basically 344 all over. Although letting my dating life influence my class selection is probably not something I'll do again (I totally wussed out of taking an advanced algorithms class, which would have probably been challenging and worthwhile but taken enough time to making trying to date n girls simultaneously impossible), it wasn't a total waste of time. After dominating the midterm and spotting a couple errors in the homework writeup, the professor offers to turn the class into independent study. For topics to study, I suggest the proof of the element uniqueness lowerbound in the comparison model of computation. Alan Siegel sends me this nice proof in email. The E. U. LB is trivial.
You need to know what it says: given a set of n numbers, a comparison-based algorithm that can solve EU does enough comparisons to determine the sorted order of the data.
Proof in a nutshell. An adversary covers up the numbers but performs all comparisons and tells the truth (which can be checked at termination time.)
The data is distinct, so there are no equalities, but the adversary is free to change the data as long as all of the tested comparisons are still as stated.
So the EU program runs, decides it is done, and halts with the claim that the data elts are distinct. Waaalllll ... let each comparison be a directed edge between data elements. So the EU program builds a DAG. If the DAG has a unique topologincal sort, the comparisons determine the sort. If not, there are two elements that could be equal.
(Run the old fashion ready set---blocked set Top Sort). If there are ever two elts in the ready set they could be made equal since there is no path from one to the other. (Technically, reducing $x$ just changes all of its predecessors in the DAG by the same value.)
Basically the idea is that you are an adversary, you force the algorithm to discover enough information to sort the elements, and then you apply the sorting lower bound to show that it must have made O(n log n) comparisons. The proof is nice and elegant. So thank you, Martin Farach-Colton, for letting me make a fool out of myself in front of ~100 people, so now I understand a proof that I'll never let myself forget. | | Sunday, December 9th, 2007 | | 12:56 am |
My recent obsession, French toast How does French toast manage to be so awesome? Seriously. I just don't understand. Bread, pretty good. Eggs, good. French toast, amazing. The goodness function for eggs and bread is definitely non-linear, reaching it's maximum at an overly soaked eggy bread.
And what's good with bread? Peanut butter and bananas. So what about a peanut butter and banana French toast sandwich? Let's just hope these third and fourth variables don't ruin the magic; experiment to be run tomorrow. | | Sunday, November 18th, 2007 | | 11:12 am |
| | Thursday, November 8th, 2007 | | 10:08 pm |
Representative pictures of Googlers My roommate just came into my room complaining that the number one Google images result for "Terry Tai" was a picture of the Ticket to Ride cover. Google quickly wised up, however, and is now returning an image of Carcassonne. This led me to query for other Googlers who attended Columbia games night. Unfortunately, Hubert Chao is way too cool and has a few of pictures of himself, but is mostly drowned out by utexas results. David Held also lacked any Columbia board game images. However, my number one result is Blue Moon City. Ross Fairgrieve returns Ticket to Ride at #5 and Tigris & Euphrates at #6. Michael Grigoriev has Majaraja at #1 and Diplomacy at #2. I an quite a fan of Blue Moon City, and Ross liked both Tigris and Ticket to Ride. And of course, I can't let things like rankings changes remove the greatness of these results, so here are some screen caps that will live forever, or at least until I rm -rf my home directory on ruslug. "   | | Monday, November 5th, 2007 | | 9:03 am |
My sister is famous Or at least, the Star Ledger quoted Kate Renaud about why she does programming contests. "My friends ask, 'Why would you do that?'" said Kaitlin Renaud, 20, a Princeton junior, admitting it's difficult to explain to non-programmers the allure of rising early on a Sunday morning to do battle on a screen. "I really can't tell them. ... But it's fun."
I guess that's better than "because my brother makes me." Apparently, she finished 13th with a 2 person team. Rutgers places were somewhat disappointing, its best team at 12th. Cornell absolutely dominated the contest, finishing all the problems with more than half the time remaining. The 2007 standings are here. | | Saturday, November 3rd, 2007 | | 3:17 pm |
In praise of Ubuntu I just bought a music CD (gasp, the horror!). Ubuntu made ripping it to ogg so incredibly easy that I had extracted the first song before I even knew what format I was writing in. Literally it was 10 seconds between right clicking the CD icon on my desktop to starting the rip. | | 2:54 pm |
iLike, you have eaten my metaphorical lunch I discovered a pretty cool and useful Facebook app named iLike a few days ago. It implements the "show me bands I like who are touring near me" very well, and it has all other nice kinds of social features built in. It's done way better than something that I could hack up in my spare time, and hence, I quit! My only complaint is that it's very much designed for itunes and it doesn't provide a way to automatically import data from anywhere else. The interface does support a comma separated line input for favorite bands, however. So I hacked up a Pandora scraper. The Pandora scraper will get not just favorites, but also bands that you simply thumbed up more than once. As a bonus, it will print scores for each artist that are in your stations. It will run with any non-ancient version of Python, I tested with 2.4. Here are the top 5 scores for me.
rob:~/code/more_live_music/src$ python pandora_parser.py rrenaud@gmail.com | head -n 5
Alanis Morissette 30
The Doors 28
Foo Fighters 26
Oasis 20
Red Hot Chili Peppers 18
The scores are simply the number thumbed up songs + 10 bonus for being in favorites. Speaking of Pandora, please, please get a clue with your ads. I was listening to a station titled "Brett Dennen Radio", my location is set to New York, NY, and Brett had a show in New York in 3 days. What kind of ads was I seeing? McDonald's ads. Hint, I am a vegetarian, that's also in my profile. With ads targeted that poorly, maybe they just don't want to earn any money? | | Wednesday, October 17th, 2007 | | 9:20 pm |
Where should I buy music online? This is related to the post about Brett Dennen. I want to buy his songs. I am willing to pay a reasonable amount per song (which seems like it is universally accepted to be $.99), and I'd like to buy from a minimally evil company. If the company stands against DRM, this is a plus. If the company doesn't donate large quantities of money to the Republican party, this is also a plus.
Edit: The executives at Yahoo Music seem to have a clue. |
[ << Previous 20 ]
|