AlgorithmsThread 9: Treaps!
Welcome back to another episode of Algorithms Thread. Today we learn about Treaps, one way of coding them, and some very powerful things they can do. After you watch this, check out the high-quality Codeforces Gym set that I made which you can use to practice your Treap skills as a challenge to make sure you really learned this topic: Github with Treap code: https://github.com/SecondThread/Algor... Timestamps: 0:00 Good Morning 0:20 Prereqs and Gym Set 2:11 Treap uses 4:55 Binary Search Tree Constraints 8:08 Forcing Log Height 10:00 Making Priorities 12:00 Treap Splitting 16:05 Merging 20:30 Implementation Details 31:24 Doing Arbitrary Queries 33:57 Runtime Analysis 35:03 MIRRORING (and going outside) 38:50 Implementing reflection 39:55 Finding parents 42:55 Gotchas

Treaps Contest Solutions

Algorithm Alphabet: AVL, AA, and Red-Black Trees (+ Treap)

AlgorithmsThread 5: Persistent Data Structures

A&DS S02E06. Treaps, implicit keys

Fibonacci Heaps or "How to invent an extremely clever data structure"

AlgorithmsThread 8: Tree Basics

Becoming World #1, Community, Talent vs Practice | Mateusz Radecki (Radewoosh)

AlgorithmsThread 3: Segment Trees

Understanding B-Trees: The Data Structure Behind Modern Databases

the best classical music for concentration | atmospheric music for focus

The Strange Math That Predicts (Almost) Anything

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Red-Black Trees Visually Explained

Sparse Table & RMQ (Range Minimum Query)

Professor Answers Coding Questions | Tech Support | WIRED

What Nobody Tells You About Being a Quant

Treaps: A Fantastic Data Structure

How to Implement a Tree in C

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

