Yes, the new METRO schedule change is out, and they split Bus 8 (South Main/Yale) into Bus 8 South Main to the south and Bus 66 Yale to the north. So now that makes 63 buses I have to ride. I had better get going on this before they change it again!
I managed to get all the bus times (post-bus 8 split) and threw them all into a database. I've been trying my hardest to use this data to my advantage to find an optimal route. In my mind, an optimal route would be one where I would have at least a 10 minute wait between buses (to avoid the late bus factor) and no more than a 30 minute wait between buses.
My first script did just that. You gave it a starting spot and how long you wanted to wait, and it spit out a route for you. You could either have it spit out the first route found or the fastest route found. The problem with this is processing speed. In order to find every bus route possible, it is a worst case of 63! calculations (63! means 63 factorial, or 63*62*61*60* ... *3*2*1). If you throw that into a calculator, it comes back with 2 X 10^82, or a 2 with 82 zeros after it. This means that even if I had a super computer that could do a billion checks a second (which is unreal speed), it would take 3 X 10^67 years to calculate a solution. So... that won't work.
My second script was to cut it down into little pieces to aid in a human-aided search. You could put in point A and point B and it would try to find the best path between them. The script works, to a point. The problem is that it usually skips over some crosstown buses that you need to get, because it would take too long to get them later. But it does very good at finding quickly the fastest path using 3-4 buses between two points. At least that's something. I also added a user-input variable for a "first bus" that you have to take, as well as an exclusion list of buses that you may not take on your trip. Another problem with the script is that there is no advanced string matching for the starting point, so if you don't spell the street name exactly like it is in the database, it won't know what you're talking about.
My next script is going to be 100% user input. I think this will be the best help in finding a good route. When you give it a starting point, it will spit back at you all the routes that go through that point. When you pick one of those routes, it will spit out every stop along that route, including what times it will get to that route, and which buses intersect it at that route and how long you'd have to wait at that stop to hit that bus. Then you click one of those stops and the process repeats. It will keep a running tab of what buses you've taken to get to where you're going and let you back up as many spots as you need. Unfortunately, I probably won't get to this until after my vacation next week.
Showing posts with label bus ride. Show all posts
Showing posts with label bus ride. Show all posts
Monday, June 04, 2007
Thursday, May 24, 2007
Making the Most of the 62-Bus Ride
First of all, a correction to my original post. There are 62 local buses in Houston, not 61. I grouped buses 26/27 together. If you look at a map, they're pretty much the same line. They go around in a circle around downtown. Bus 27 goes clockwise and bus 26 goes counterclockwise. But, they have different numbers, so I'll consider them different lines.
I think the biggest question I get asked about riding every bus in Houston is "why?" I think the biggest reason is: adventure. It's the same reason that someone would drive 3 days cross-country when they could of just taken a 5-hour flight. It's the same reason you can't help but slow down to look at a car crash. It's a break from the ordinary. With every adventure comes a story; a story you can tell others. A story you can tell your friends and family. I mean, what is my alternative? Spending all day making copies and staring at a computer screen? Besides, I never give up a chance to promote public transportation. You can ask any of my co-workers that and they would tell you the same thing!
But is this enough? I think so. But, if this adventure ends up getting press, I'm going to try to do something charitable. I would seem like a waste not to. I'm a good person, after all! Yesterday METRO released a news article that 10 of their mechanics were putting away $3 of each of their paychecks into a fund to buy bicycles for Houston's Fifth Ward kids for Christmas. Last year they managed to buy 58 bicycles. This year they are hoping to buy 500 bikes with help of donors. I think this is an amazingly worthwhile cause. What I'm going to do is try to set up a way to accept pledges to go towards this fund, where people can pledge a per-bus donation for my big trip, then an optional bonus if I can finish the entire thing. This way, even if I don't make it, I will still raise money for charity. Every dollar I collect will go towards buying those kids these bikes. They will compliment all the new bike racks that METRO is putting on their buses quite nicely.
I think the biggest question I get asked about riding every bus in Houston is "why?" I think the biggest reason is: adventure. It's the same reason that someone would drive 3 days cross-country when they could of just taken a 5-hour flight. It's the same reason you can't help but slow down to look at a car crash. It's a break from the ordinary. With every adventure comes a story; a story you can tell others. A story you can tell your friends and family. I mean, what is my alternative? Spending all day making copies and staring at a computer screen? Besides, I never give up a chance to promote public transportation. You can ask any of my co-workers that and they would tell you the same thing!
But is this enough? I think so. But, if this adventure ends up getting press, I'm going to try to do something charitable. I would seem like a waste not to. I'm a good person, after all! Yesterday METRO released a news article that 10 of their mechanics were putting away $3 of each of their paychecks into a fund to buy bicycles for Houston's Fifth Ward kids for Christmas. Last year they managed to buy 58 bicycles. This year they are hoping to buy 500 bikes with help of donors. I think this is an amazingly worthwhile cause. What I'm going to do is try to set up a way to accept pledges to go towards this fund, where people can pledge a per-bus donation for my big trip, then an optional bonus if I can finish the entire thing. This way, even if I don't make it, I will still raise money for charity. Every dollar I collect will go towards buying those kids these bikes. They will compliment all the new bike racks that METRO is putting on their buses quite nicely.
Wednesday, May 23, 2007
Houston buses
In case you aren't monitoring the comments for posts that were written 6 months ago, I thought I would clue you in on a recent development. Yesterday I got a new comment on this post
I have inspired someone else!!! Fellow is going to attempt to ride all 61 local buses in Houston. Follow the link for more information.
It's almost enough to make me want to go down to Houston to ride with him :-). And just think of how many counties I could pick up travelling down there!!
I had considered doing something similar in Cincinnati but shelved the idea. The problem is that just about every bus in Cincinnati goes from downtown to somewhere. There are only a few (51, 41, and probably a few others that I can't think of off the top of my head) that are more of "cross-town" buses. So that's not really a problem for completing the route - actually it would make it pretty easy. All you'd need to do (for the most part) is just get on and off various buses downtown, which just didn't seem as "cool" as some of the other things I had come up with. A larger city with more buses (Chicago and New York to name 2) I think would be a worthwhile challenge. Still maybe this will inspire me to come up with a good route for Cincinnati.
I have inspired someone else!!! Fellow is going to attempt to ride all 61 local buses in Houston. Follow the link for more information.
It's almost enough to make me want to go down to Houston to ride with him :-). And just think of how many counties I could pick up travelling down there!!
I had considered doing something similar in Cincinnati but shelved the idea. The problem is that just about every bus in Cincinnati goes from downtown to somewhere. There are only a few (51, 41, and probably a few others that I can't think of off the top of my head) that are more of "cross-town" buses. So that's not really a problem for completing the route - actually it would make it pretty easy. All you'd need to do (for the most part) is just get on and off various buses downtown, which just didn't seem as "cool" as some of the other things I had come up with. A larger city with more buses (Chicago and New York to name 2) I think would be a worthwhile challenge. Still maybe this will inspire me to come up with a good route for Cincinnati.
Subscribe to:
Posts (Atom)