TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ryanair, Hamiltonian Cycles, and using graph theory to find cheap flights (2018)

207 pointsby jonlucaover 5 years ago

15 comments

sphix0rover 5 years ago
We (me and a friend) did something similar for multi city round trips within Europe (<a href="https:&#x2F;&#x2F;tripchemy.com" rel="nofollow">https:&#x2F;&#x2F;tripchemy.com</a>).<p>We created some data structures that allow almost instant searching of such routes and we have scrapers running regularly on Ryanair, easyJet, wizzair, and Transavia. You can query the algorithm here: <a href="https:&#x2F;&#x2F;algo.tripchemy.com&#x2F;routes&#x2F;TSF?year=2020&amp;month=02&amp;day=5&amp;length=7" rel="nofollow">https:&#x2F;&#x2F;algo.tripchemy.com&#x2F;routes&#x2F;TSF?year=2020&amp;month=02&amp;day...</a><p>It&#x27;s based on the following Open source project which my friend made back in the day <a href="https:&#x2F;&#x2F;github.com&#x2F;Whazor&#x2F;Roundtrip" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Whazor&#x2F;Roundtrip</a>
评论 #22104413 未加载
评论 #22118188 未加载
评论 #22105658 未加载
评论 #22104396 未加载
jonas21over 5 years ago
&gt; Ryanair is a wonderful example of two extremes - it’s one of the worst possible airlines that nickel and dimes you for everything, it’s not a great employer, and it is rated the worst European airline; however, it’s dirt cheap.<p>I fail to see how these are two different extremes. More like two sides of the same coin.
评论 #22103204 未加载
3xblahover 5 years ago
&quot;I traversed down the state tree until I found the allAirportsList property, which contained all the airport keys and the locations to which they flew. I extracted this state (over 1MB of route information) and could now build a graph representation of airport connections.&quot;<p>In the 90&#x27;s, I can remember a pocket-sized, printed guide by a company called OAG. I used to call it &quot;the OAG Guide&quot;. I can remember getting a copy of this for free. It listed every schedule for every route for every airline. I can also remember getting similar pocket-sized guides from certain airlines listing all their routes and schedules for each route.<p>When the task of planning routes comes up, I sometimes think of those old printed guides and wonder if this could be cited as an example where certain information was actually more easily accessible <i>before</i> the www became popular than after.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;OAG_(company)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;OAG_(company)</a>
评论 #22103621 未加载
评论 #22102956 未加载
hncommenter13over 5 years ago
One of the founders of ITA Software, which became Google&#x27;s flight search, discussed some interesting issues in airline fare search [0]. I don&#x27;t have enough of a CS background to fully understand all of this, but the message is pretty clear: it&#x27;s complicated.<p>There was also an HN thread from 2012 discussing ITA&#x27;s use of Lisp.[1]<p>[0] <a href="http:&#x2F;&#x2F;www.demarcken.org&#x2F;carl&#x2F;papers&#x2F;ITA-software-travel-complexity&#x2F;ITA-software-travel-complexity.pdf" rel="nofollow">http:&#x2F;&#x2F;www.demarcken.org&#x2F;carl&#x2F;papers&#x2F;ITA-software-travel-com...</a><p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4639490" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4639490</a>
huronover 5 years ago
Nice work. To be truly usable though you need to ensure that the flight times match up. There&#x27;s no point flying to an intermediary airfield to find that your connection flight left 30 minutes ago.
评论 #22101738 未加载
评论 #22101871 未加载
beatthatflightover 5 years ago
I&#x27;m fairly decent at finding flight deals for my side hustle site, I know where and when to look (for Australian flights especially). I have some automation scripts (using python&#x2F;selenium). But this takes it to the next level! Bravo, bravo!
评论 #22102291 未加载
评论 #22124089 未加载
eltadosover 5 years ago
Like the idea ! Wouldn&#x27;t using the data of something like <a href="https:&#x2F;&#x2F;www.skyscanner.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.skyscanner.net&#x2F;</a> give you better data, across multiple airline
boultonmarkover 5 years ago
Or just use the extraordinary product <a href="https:&#x2F;&#x2F;www.kiwi.com" rel="nofollow">https:&#x2F;&#x2F;www.kiwi.com</a>
评论 #22104371 未加载
kilotarasover 5 years ago
Find route can probably be made way more efficient by using meet in the middle technique.<p>Instead of finding all 6 hops from start and checking if it&#x27;s the end find 3 hops from start, 3 hops from end and just intersect two sets.
daenzover 5 years ago
Take a look at <a href="https:&#x2F;&#x2F;amoffat.github.io&#x2F;held-karp-gpu-demo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;amoffat.github.io&#x2F;held-karp-gpu-demo&#x2F;</a><p>It can easily solve 16 nodes in under 50ms by running in WebGL
polishdude20over 5 years ago
Do you know if there are any nice UI implementations of this around? I&#x27;m interested in building on your work to make a more fully featured site!
评论 #22102334 未加载
fireworks10over 5 years ago
Similarly, <a href="https:&#x2F;&#x2F;skiplagged.com" rel="nofollow">https:&#x2F;&#x2F;skiplagged.com</a> surfaces potentially cheaper multi-leg flights that have a layover in your destination city.<p>For example if you are wanting to travel from A-&gt;B, a flight that goes A-&gt;B-&gt;C may be cheaper than A-&gt;B if A-&gt;C is a competitive route.
评论 #22102029 未加载
landgenootover 5 years ago
I did something similar with that API a couple of years ago. My goal was to travel the most possible kilometers at minimal costs:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;landgenoot&#x2F;airtrip-finder" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;landgenoot&#x2F;airtrip-finder</a>
zullnover 5 years ago
Not as cool, but <a href="https:&#x2F;&#x2F;www.eightydays.me&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.eightydays.me&#x2F;</a> is really convenient to book multi-city trips intra-europe.
aberforth123over 5 years ago
Or we stop promoting flights at all, cheap or expensive, just an idea to keep CO2 levels down.
评论 #22102451 未加载
评论 #22102345 未加载
评论 #22102428 未加载