depth first search

“We can only see a short distance ahead, but we can see plenty there that needs to be done."

This Week in Microblogging

  • A piano bar in the lobby virtually guarantees that the hotel room won't have enough outlets. #
  • Watching weed wars. They got hit with a huge tax bill. Liquidity trap! #
  • Wondering why they can't just borrow against future revenues. Aren't credit markets functioning in California? #weedwars #

This Week in Microblogging

  • Big bend. http://t.co/eaupaSts #
  • South rim. http://t.co/w9DMusPJ #
  • Do tricorders back up to the cloud? #nerdquestions #
  • I wouldn't mind the atmosphere of hostile indifference around the lab if it weren't also so fucking noisy. #bitter #
  • I guess sometimes when you try to combine technology and the liberal arts, the liberal arts bite back. #
  • So is there an app that makes Android fast and responsive yet? #
  • Big Austin Chronicle piece on the apartment complex where I live: http://t.co/7JeJOCuu. #
  • Also, I've been living here for six years and I don't have any idea who any of these people are. #antisocial #
  • The fact that I'm as poor as some shitty comics rubs me the wrong way. #
  • @jmugan Definitely not you making the noise. They redid the seating since you left and now it's loud, dense, and smelly down there. in reply to jmugan #
  • @jmugan I'm not even kidding. They had to spray for roaches a few weeks ago. The kitchenette is a disaster zone. in reply to jmugan #

A Sorting Puzzle

Maybe I’m underthinking the puzzle here, but it seems like heap sort solves the problem. It’s certainly meets the time requirements, but I wonder about the space issue. Does the array representation of a binary heap require a log number of pointers?

More importantly, if this was my answer, would I get a job at Google?

UPDATE: I don’t know the linear time solution, but I feel like if I could grok smoothsort I could figure it out.

This Week in Microblogging

  • Road runner! #bigbend http://t.co/shriqGo1 #
  • Hiking to lost mine peak. http://t.co/HsKLZAvm #
  • Legend says that slaves forced to work a mine hid it after emancipation. I couldn't find it. #lostmine #bigbend #
  • Out of Big Bend. Encountered a mountain lion in the backcountry. Only about 130 sightings a year. #
  • Also, throwing stones is an effective mountain lion deterrent. Don't get eaten out there! #
  • Busted my new phone on the trail. Get to try out the new Applecare+ replacement policy. #

This Week in Microblogging

  • @jmugan May not be quite in your area, but I'd recommend http://t.co/tbU2JG8R. in reply to jmugan #
  • Having one of these "I really should have thought of that" moments. #
  • Corbett's deft takedown of Paterno's entire legacy was ninja-like. It was a masterstroke for justice. #
  • Menswear obsession day something: Performance polo, corduroy, and sneakers. Confused but functional. #
  • Perk of being married to a writer — having someone around who can spell corduroy. #
  • If Enron were still around today it would have been bailed out and its top executives immunized from prosecution. #
  • Going completely off the grid next week. Excited! #
  • @jmugan Apple! in reply to jmugan #
  • Packed up and ready to go out of pocket and off the grid. See you on the other side. #

Quote of the Day

All over the country, thousands of armed cops have been deployed to stand around and surveil and even assault the polite crowds of Occupy protesters. This deployment of law-enforcement resources already dwarfs the amount of money and manpower that the government “committed” to fighting crime and corruption during the financial crisis. One OWS protester steps in the wrong place, and she immediately has police roping her off like wayward cattle. But in the skyscrapers above the protests, anything goes.

This Week in Microblogging

  • @jmugan Some scavenger hunt. Did you find what you were looking for? in reply to jmugan #
  • Prediction: Taunts from opposing fans are going to take a dark, dark turn in future PSU games. #
  • Surprised these tracking devices don't result in more bomb scares. If I see a strange antenna poking out of my bumper I wouldn't go near it. #
  • Also, I bet the bomb squad/DEA meetings about the device after would be hilarious/awkward. #
  • I mean, suppose they defuse the device kinetically. Who pays? Imagine the email thread! #
  • What I'm musing on about: http://t.co/h3bpoKLA #
  • Me: Siri, what's your favorite DFW reference?
    Siri: …
    Me: Me too. #
  • I think the value of a #PennState degree is declining by the second. #
  • I'm 30 now, so maybe it's time I start cultivating a serious interest in menswear. #
  • At one point the key was having really pointy shoes. Now I think tweed is in. #
  • Also, I seem to remember something about whimsical patterning on ties. #
  • My blog is so obscure that it's not even worth spamming anymore. #
  • Best case: What happened at PSU was the worst game of telephone in human history. #
  • Worst case: The errors were volitional. #
  • Menswear obsession day one: I'm wearing running shorts and a t-shirt. I don't think I'm doing this right. #
  • Just finished watching The Trip. Funny, beautiful, sad, and strangely life affirming. #
  • On the East Austin Studio Tour. http://t.co/v9tQGolo #

A Window

The occupy movement juxtaposed with recent warrantless GPS tracker cases has really crystallized an idea for me about the two sides of the surveillance state. The key to normalizing a privacy free culture is to trade off the civil liberty issues with the clarity brought about by careful observation of the state. In short, as the government peers into us, we peer into it.

This seems like a new and different equilibrium, one that hasn’t ever been explored at superpower scale. For every warrantless wiretap and NSA datamining sweep, we have videos of cops beating protesters, wikileaks, and open mics. These moments allow us all to reacquire a shared truth, a common state of being. This happened. There’s no denying it. Information flows in all directions. The truth does not just want to be free, it wants to be ever present.

For every dusty DEA agent secretly slapping a transponder on a beater car (how depressing that job must be), we have a new revelation about the private lives of Texas judges, or the free hand NYC lieutenants take towards the liberal application of pepper spray. These things don’t have to be whispered about. They don’t even have to be reported. They can just be shown.

I guess sometimes I feel like both the state and the people think they’re looking through one-way mirrors.

It’s a window people. A window.

On Football

I’ve been following the horror show at Penn State with quite a bit of morbid curiosity. At first I wasn’t sure I had anything more beyond a few pithy tweets to say about the matter, but now I think there is a larger truth that’s worth serious consideration by anyone involved in large human institutions with complex and sometimes ill-defined goals. To start, you should know that I’m of the opinion that there was serious wrongdoing on the part of the administration and football staff and believe that the governing body of PSU hasn’t done nearly enough to avoid serious long term harm to the institution. If you don’t feel that way, you should probably stop reading. Nothing a nobody from Texas could say to convince you, so I’m not going to try. This isn’t like other cases. There is no doubt. The facts are not in dispute. There are multiple eye witness accounts to child rape that span years. These accounts were given under oath. And for years nothing was done to prevent further harm.

Contra Deadspin, I think this is the biggest sports scandal in modern history. Yes, the OJ murder was a circus, but it was a single (and terrible) crime of violence by a lone individual that was investigated and prosecuted in a timely fashion. What this situation at PSU exposes is the compromised moral center of the entire institution. As we look into this PSU mess, we ought to look at ourselves and more importantly our participation in institutions closer to home. I’m not saying there’s a Sandusky at the center of football programs all over the country. What I am saying is that the same moral calculus exists for everybody else. Football is king. Football fans are the great enablers. And nobody in any position of power is willing to peak inside and criticize the machine.

I’m a recent convert to fandom. I’m a student at a big time football school (some say the biggest). I enjoy watching the games. I think the massive tailgating that goes on around Austin on game day is a good and positive expression of community in a world that otherwise likes to strip away community in the face of acerbic progress. And all of this sets up a space where the main players fail to properly evaluate the toll of big time (and big money) athletics on many student athletes, or the way the educational mission of a large and varied institution is reduced to being a conduit for huge television deals. Because student athletes are not properly compensated (and are forced into grey and black market transactions), and because coaches and programs extract disproportionate rents due to NCAA regulations, as long as the BCS remains an “old boys club” and entertainers on ESPN make bank while the educational institutions themselves hemorrhage cash amidst declining state support and rising tuition, I’m done with college football.

Done.

UPDATE: I guess I should be clear that I do think that Mack Brown runs one of the cleanest programs in college football, even as I think that football at the college level is hopelessly corrupt.

Normal

I wrote a Python class for manipulating normal distributions. I use it as part of some code for GMMs (https://github.com/stober/gmm). I was looking for code that supported conditioning and marginalization on arbitrary indices. There didn’t seem to be any out there so I wrote this to fill in the gap (at least for Python).