Convex Hull Trick - Dynamic Programming Optimisation

Pubblicato il: 26 ottobre 2020
sul canale di: Algorithms Conquered
16,195
374

Hey guys!

I teach the the Convex Hull Trick which is an amazing optimisation for dynamic programming.
This is also an editorial for the problem Frog 3 from the AtCoder DP Contest.

Prerequisites:
1. You should already be familiar with standard dynamic programming.
2. You know know about the equation of a straight line (y = mx + c).

Programming:
https://atcoder.jp/contests/dp/tasks/...

Here is my submission:
https://atcoder.jp/contests/dp/submis...

My Monotonic CHT Template:
https://github.com/arujbansal/Competi...

Li Chao Tree Template (Use in case of parallel lines/no monotonicity):
https://github.com/arujbansal/Competi...

Great Tutorial On Li Chao Trees:
   • CP Tutorial: Li Chao Tree  


In questa pagina del sito puoi guardare il video online Convex Hull Trick - Dynamic Programming Optimisation della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Algorithms Conquered 26 ottobre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 16,195 volte e gli è piaciuto 374 spettatori. Buona visione!