Thursday, September 11, 2008

Hierarchy and Nested Structure

I've recently been thinking a lot about the organization of structures in 3-dimensional space, and I really would like to take a class on topology.

Anyway, with regard to hierarchy, it seems to me as if there is a qualitative distinction between two classes of hierarchical structures, but maybe the distinction isn't really there at all...I don't know.

Consider hierarchical structures like a tree or a ziggurat:




If you were going to write instructions about how to build such structures, how would you do it? They're constructed by using a root node, like the trunk or the base, and by adding smaller child elements of a similar type to the parent node. Then you just repeat that step a given number of times.

For example, you could say:

1) Start with a cylinder
2) Add two cylinders 50% the size of the original on one end, each facing 45 degrees in opposite directions
3) Repeat 10 times

That would give you a tree structure. You could do the same thing with boxes in order to build a pyramid/ziggurat. If you think about your body, many aspects of it are constructed this way. Your limbs, hands, and fingers are essentially tree structures.

Now consider the following hierarchical structures, such as nested Russian dolls or an onion:




These structures are hierarchical as well, aren't they? But aren't they different from the previous examples?

How would you write instructions for how to build a set of nested dolls? You could go from the top down or the bottom up, but either way, the difference with the previous examples is that each element completely contains its child element. Rather than the child elements being added externally, as in a tree, they're added internally. This is more intuitive if you think of cellular structure. An organ acts as a container for millions of cells, each of which acts as a container for numbers of sub-cellular components.

So some aspects of your morphology are like a tree structure, where elements are oriented relative to the external surface of their parent elements which act as substrates for child elements. Other aspects of your body are like nested dolls, where parents serve as containers to child elements.

I got this insight when thinking about the organization of elements in the neocortex. The neocortex is one big, flat sheet. But it contains many regions, which in turn contain subregions, which contain columns, which contain minicolumns, which contain neurons. So it is essentially a nested hierarchy. But neurons themselves act as substrates for their axons and dendrites, which are essentially tree structures. But neurons are also containers for sub-cellular structures, like the tiny sacs that contain neurotransmitters.



It seems to me that any system for specifying 3D structures that incorporates both kind of hierarchy can efficiently represent any arbitrary structure that has a high degree of hierarchy, such as biological organisms.

Wednesday, September 10, 2008

Evolution Video Games

The video game Spore just came out. It was in development for years, the brain-child of Will Wright, the guy who did all the Sims games. Supposedly Wright got input from scientists while making the game, but the game is getting mixed reviews from scientists. Some are saying that it actually spreads misinformation about evolutionary processes.



Some of the criticism I've heard is that there's too much tinkering on the part of the user to have the dynamics qualify as anything resembling evolution. Another is that the game has pre-ordained directionality: There are five stages to the game, and they always occur (cell, creature, tribal, civilization, space). Evolution doesn't work this way.

If you want to try a free video game that's a little truer to evolutionary dynamics, here's NERO, Neuro-Evolving Robotic Operatives, developed at the University of Texas at Austin. It's a combat game in which you tune the selection pressure of evolving populations of robotic soldiers in order to develop armies with particular characteristics. For example, in training mode (pictured here), your robots spawn by falling out of the sky and landing in the arena.



You can place obstacles, such as walls, or enemies, such as machine gun turrets, anywhere in the arena. When soldiers die from being shot by enemies, new ones spawn, and the controllers of the offspring are mutated descendants of the other members of the population. You can control the behaviors selected for by adjusting scroll bars. For example, you can control whether your soldiers evolve to be "kamikazes" or "evaders" by adjusting the pressure for them to either run straight at, or avoid gun fire. Once you've trained an army, you cut them loose in a battle situation and see how they fare.



Their morphologies don't evolve, just their controllers, or "brains". And this is really more a case of artificial selection than natural selection. Natural selection is pressure from either external environmental conditions or interaction with other non-human organisms that causes differential survival in a populations. For example, if the environment cools in a particular region over multiple generations of a species that has fur, like a fox, those individuals with thicker fur might be more likely to survive and reproduce, and thus more offspring in the population will have thicker fur.

Artificial selection is when the selection pressure is determined by humans. For example, a farmer is able to sell plumper, sweeter corn at market, so each time he harvests and plants, he picks kernels from the plumpest, sweetest plants to start the next crop. After successive generations, corn in this population has much larger, sweeter kernels than it did several generations ago.

Video games are going to necessarily involve artificial selection. Otherwise, the player would have nothing to do. Evolution by natural selection is an inherently undirected process, and wouldn't much make for fun game play.

I've done some work with evolutionary algorithms, and I enjoy sitting back and watching a population evolve. But I don't think this has much wide appeal. And even though NERO is a cool concept, when I played it, I didn't really think it was all that fun.

Creatures is another game series that was developed in the 90's, but I never played it. There's something appealing about the idea of playing god, determining who lives and dies in an evolving ecosystem based on your decisions, but the interaction is indirect, and its the evolving organisms that are doing most of the work.

So as much as I think the idea is cool, I don't think video games really based on evolutionary processes are going to take the gaming world by storm. However, I think if they are faithful to the science, mini-games based on evolution could be invaluable teaching tools at just about any level in education.

Tuesday, September 9, 2008

Back With Firefox

After a couple of days of using the new Google Chrome, I've switched back to Firefox. Why? Well, I was willing to orient myself to a new interface. Chrome was fairly slick and intuitive.

What ultimately made me switch back were performance issues. Maybe I'm in the minority of users, but Chrome was generally slower for me than Firefox, and I had particular issues with watching embedded video.

Rotten Tomatoes is a pretty good site to give a new browser a workout. Ever since they overhauled it for the worse, it's chock full of elements and ads that hog resources and take forever to load. But I still go there because as far as I know there's not another site with content like it. Firefox loads RT faster for me than Chrome. Quite a bit faster.

Also, I don't have cable at home. Sometimes I like to watch movies or TV shows through the new Hulu site. Their selection is pretty good, and growing rapidly. I can watch The Daily Show or The Colbert Report the next day. And the interface and quality is quite good. Firefox has no problems. Not so for Chrome, which screws up when switching back and forth between full screen and normal watching mode.

I also like to have multiple tabs and windows open at a time, and Chrome would hang for me when switching between them, while Firefox does not.

It's a beta product, so I'm willing to cut them a little slack, but obviously when it's impacting my browsing habits, I'm not going to switch permanently to it. Maybe I'll have a look at it again when it's a mature release. Until then, I'm sticking with good ol' Firefox.

Sunday, September 7, 2008

What is Hierarchy? Revisited: The Structure of the Cortex

Extending this discussion, I'm still curious about the best way to describe the structure of the cortex in terms of either graph theory or as a data structure.

From what I know of graph theory, the cortex can best be described as:

1) A directed graph (meaning there is directionality between nodes, in this case the flow of information)
2) Cyclical (the flow of information is not in a uniform direction, but cycles or loops through at least some of the nodes)

In terms of data structure, any given node in the cortex can have:

1) 0, 1, or many peers
2) 0, 1, or many parents
3) 0, 1, or many children

Connections (or edges, using graph theory lingo) can occur between any two nodes in the system. However, there is a strong bias in connectivity: It tends to be local. Which means that while there are long-range connections in the cortex, and connectivity sometimes jumps levels in the hierarchy, the bulk of it is between immediate parents, children, and peers.

There does seem to be a bias toward fan-in as you move up the hierarchy. This means that there tend to be fewer nodes in lower levels of the hierarchy than higher levels (e.g. the primary visual cortex is bigger than the secondary visual cortex). But this again is a bias, not true in all instances.

So is there a word or phrase that best captures this particular kind of structure? Network seems too general and anarchic. You could just say it's a hierarchical network with a bias toward local connectivity. My advisor has used the term lattice or lattice hierarchy. I think those are interesting terms, though I'm not entirely sold on them.

Any thoughts?

Thursday, September 4, 2008

Political Conventions

I caught a little of Sarah Palin's speech from last night. She did well, but then, it's not that hard to perform well on your home turf with thousands of your own cheerleaders.

I'm not a big fan of political conventions anyway. They're red meat for the party's base, and I'm not strongly affiliated with either of the major parties.

I want to see some debates. I know they're also somewhat contrived (what isn't, in a political race?). But they allow you to do window shopping with the choices side by side, and if the moderator and questions are halfway decent, you actually get some glimmer of insight into what the candidate is really like, or at least how they'll perform when someone is tearing into them under the spotlight.

I expect Obama and McCain to essentially ignore each other in the debates and stick to their talking points. Obama will probably float up on a little cloud talking about how he wants to make everything wonderful (I'm especially interested in how he handles questions about raising taxes, though...probably by deflecting with an answer about how Bush has put through tax cuts for the rich), while McCain seems more and more like a tortoise...slow and steady with a thick shell. I thought he looked limpid next to the other Republican candidates in the primary debates, but apparently the strategy worked.

I don't expect Biden and Palin to ignore each other. On the contrary, I think (and kind of hope) they'll go for each other's jugulars. If so, those will be fun debates to watch.

I still haven't completely made up my mind on who to vote for, though at this point I'm about 75% toward Obama. The political cheerleading of the conventions isn't going to push me one way or the other, though.

Wednesday, September 3, 2008

Google Chrome

So I just downloaded Google's new open-source web browser, Chrome, which you can download here.

I'm pretty happy with the latest version of Firefox, but I thought I'd give it a spin anyway. I've done my daily browsing with it, and I'm actually pretty impressed.

The good things:

1) It looks very clean, and maximizes the page viewing area.

2) The first page that starts up defaults to some of your most recent sites, which is pretty cool. But it can also be set to a permanent home page.

3) You can just click and drag the current URL to your bookmarks bar. In general, the interface is very slick and intuitive.

4) The address bar can be used to either enter URLs or as a search engine.

5) Incognito mode is pretty neat. It lets you open a window which lets you browse without accepting cookies or recording browsing history. The guide says this is to allow you to "plan birthday parties in secret" (in other words, it's for guys who want to look at videos of mules having sex with midgets, and not have their wife stumble across it).

6) It's open-source, which means that any programmer can get in under the hood and modify it. Some of the next-gen iterations of the product will probably be really cool.

The not-so-good things:

1) It's not very customizable, which is also kind of a good thing. The menus are uncluttered, but there aren't many options. For example, I'd like a new window to open full-screen, but I don't think that's possible.

2) Speed. Chrome is supposed to be faster than other browsers, but so far I haven't noticed any change in speed. I think the bottleneck for the vast majority of users is their internet connection speed, so I don't really see that page rendering speed is all that big a deal. And yet they're hyping it.

3) It is a beta version. I've already had it freeze up on me a couple of times. Waiting for a bit solved the problem, so it didn't crash the program. The program takes several seconds to recover after closing one of the windows (I prefer new windows for content, rather than tabs). It's annoying.

4) Apparently, one of the main reasons Google even put out a browser was to...make more money. But the way they're doing it with Chrome is apparently that the new browser makes it easier for them to gather information on browsing, advertising, and buying habits. I don't consider this a big deal (unless it impacts my browsing experience), but some might.

Anyway, so far there's more good than bad. I'll keep using it for another day or so before I decide to stick with Firefox or make the switch. My very first impression was not all that positive, but it's starting to make me warm to it, so we'll see.

Tuesday, September 2, 2008

Post-Gustav Post

Well, I survived Gustav...though it really didn't turn out to be all that horrible, considering it was on a direct trajectory for this area.

I stayed at my girlfriend's parents' house since Saturday evening, and Monday was when we got the worst of it. High winds and lots of rain. Their neighbors' wooden fence got blown down, and lots of branches were snapped off, but all in all it wasn't all that bad. After things calmed, we thought we might be getting another round, thinking we were in the eye and would get the other side, but we didn't really get anything like the first bout, which was probably the top of the eye.

And now I'm back in Lafayette, with electricity and air conditioning and the internet. Though lots of other people in Louisiana are without electricity right now, which sucks. And since I've been off the grid for the past few days, I have no idea what's been going on in the world...so off to the news sites!