by tragomaskhalos · 5y ago · 0 comments
He spent about 20 minutes one lunchtime trying to explain it to me, but it went straight over my head (I think 'alpha-beta pruning' was in there somewhere), but anyway it was all for naught as - hardly surprisingly - TfL had little appetite for software that would actually reduce their revenue.
I guess because they couldn’t work out a way for you to purchase a travel card on your contactless card, so this was the only way to allow regular commuters to use their contactless.
Anyway it was the reason I switched over from oyster to contactless. I realised I was getting ripped off as I would always use PAYG and _sometimes_ went over the caps.
I don't know what alpha-beta pruning is, and I'm not necessarily asserting it's massively complex, and I don't know anything about/haven't worked in the area beyond as a user - just pointing out it's not as simple as it might at first seem.
Basically, you do a breadth-first full recursive solve, but bail out of any branch that is clearly worse than other candidates.
If I'm poking through something I maybe want but might get in person, and I find something I've already bought that fits my need again... I'm more likely to buy again than to wander over to a physical store. Especially true for things I don't buy often and then need suddenly, like casual clothing (oops, ripped it) or random felt pads for furniture (oh dear, that's going to scratch things up quick).
I'm also less likely to hem and haw about it until I just buy from a physical store. (For example, "these paper towels or those? idk, decide tomorrow" and then buy with groceries the next day.)
Besides, if you rebuy, then return, that's worse for them than if you just never rebought. Sure, they'll probably charge you a restock fee, but I'm not entirely convinced it covers the full cost to Amazon.
That makes me way more likely to just buy from Amazon, even if another merchant is slightly cheaper.
This happens live because you are shown the current balance (which needs this calculation) when completing journeys in some places, and can also check it from outside the system.
So you can see that a journey you just made cost say 10p even though obviously there are no fares that low, because 10p was the difference between the cheapest way to do your previous set of journeys, and the cheapest way to do all those journeys plus the new one.
† There are sometimes weird corner cases where e.g. travelling one extra stop and walking back is slightly cheaper but that's a different journey not an extra one.
They're priced such that it's not going to make sense to buy more than one if you could figure out the correct one to buy (which the algorithm can), and the cap is always cheaper or the same price than an equivalent travelcard if one exists.
Suppose I make one journey from Amersham to Chalfont, it's £1.60 off peak, if I make this journey over and over I hit the cap (for off peak travel more or less anywhere) at £13.60.
Now suppose that randomly during the rush hour, I make one other journey, from Waterloo to Victoria, in Zone 1. That costs £2.40 and being peak travel it isn't included in my cap, so my total is now £16.00
I can do that twice, maybe it happens in the morning rush hour, and again in the evening, and between then I run back and forth between Amersham and Chalfont, in this case my total is £18.40.
But if I did the Zone 1 peak journey a third time, a new cap kicks in, for zones 1-9 any time, at £19.30 and neither kind of journey costs any further money, nor do most journeys anywhere in the network since that's all the numbered zones and any time.
It has a weird effect where I would take a couple of extra journeys just to whack it into the next tier. Like head into Leeds on the bus to browse the shops and get lunch.
why? oyster is a stored value card
the barrier where you tap-out calculates and takes the money off the card instantly, and given the interaction time to get you through the barrier the computation is necessarily limited
whereas a contactless card is effectively being a pointer to a bank account that can be charged at a later date
for TfL there is a batch process at the end of the day which does that
Which can lead to some perplexing notifications from your bank at 0400 when it says you've just charged £N at A.N.Tube and it takes you a good three minutes before you realise it's not someone cloning your card but the journey you made 18 hours ago.