ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Treap (Tree + Heap) Data Structure - Tutorial with Statistical Analysis

Автор: Stable Sort

Загружено: 2020-02-27

Просмотров: 18929

Описание: A computer science data structure called "Treap" is a combination of a Binary Search Tree and a Heap. This introductory tutorial explains how Treap data structure uses randomly generated numbers, called "priority" to construct and maintain a reasonably balanced tree.

The tree is constructed as if it’s a heap, with maximum priority value being at the root of the tree. Note that the tree construction needs to satisfy two conditions simultaneously:

1) each left child value is smaller than its parent’s, while each right child value is greater than its parent’s (this is the old binary search tree rule).
2) each child priority is smaller than its parent's priority (this is the max heap rule)

To we ensure that both of these conditions are satisfied, when inserting a node, we still walk down from the root, following the rules of a standard binary search tree (BST), comparing values to each other - we go left if the value is smaller than the parent, right if the value is bigger than the parent, and eventually create a new leaf node. Then, if we find that the priority of the node is greater than parent’s priority, we do tree rotations to fix this.

Cecilia R. Aragon and Raimund Seidel, in their 1989 paper, called "Randomized Search Trees", show that while there is no hard guarantee that the resulting tree will be balanced, the probability of the height of a Treap with n nodes being greater than natural log of n by a factor of some constant c, is bounded by a formula.
http://faculty.washington.edu/aragon/...

In computer science, the treap and the randomized binary search tree are two closely related forms of binary search tree data structures that maintain a dynamic set of ordered keys and allow binary searches among the keys:
https://en.wikipedia.org/wiki/Treap

Avrim Blum's CMU lecture that makes use of "Hoeffding’s inequality" to analyze dept of a treap:
https://www.cs.cmu.edu/~avrim/451f11/...

Written and narrated by Andre Violentyev

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Treap (Tree + Heap) Data Structure - Tutorial with Statistical Analysis

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Структура данных дерева сегментов — запросы Min Max — исходный код Java

Структура данных дерева сегментов — запросы Min Max — исходный код Java

Понимание B-деревьев: структура данных, лежащая в основе современных баз данных

Понимание B-деревьев: структура данных, лежащая в основе современных баз данных

Fibonacci Heaps or

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

Skip Lists

Skip Lists

N Coins in a Row Game (Pots of Gold interview problem) optimal solution in O(n)

N Coins in a Row Game (Pots of Gold interview problem) optimal solution in O(n)

Дерево Фенвика (двоичное индексное дерево) — краткое руководство и объяснение исходного кода

Дерево Фенвика (двоичное индексное дерево) — краткое руководство и объяснение исходного кода

4. Divide & Conquer: van Emde Boas Trees

4. Divide & Conquer: van Emde Boas Trees

Treaps: A Fantastic Data Structure

Treaps: A Fantastic Data Structure

K-d Trees - Computerphile

K-d Trees - Computerphile

AlgorithmsThread 9: Treaps!

AlgorithmsThread 9: Treaps!

Алгоритм выпуклой оболочки — учебник по сканированию Грэма и алгоритму Джарвиса Марча

Алгоритм выпуклой оболочки — учебник по сканированию Грэма и алгоритму Джарвиса Марча

Как учить ребёнка математике – Алексей Савватеев | Лекции по математике

Как учить ребёнка математике – Алексей Савватеев | Лекции по математике

Heaps & Priority Queues - Heapify, Heap Sort, Heapq Library - DSA Course in Python Lecture 9

Heaps & Priority Queues - Heapify, Heap Sort, Heapq Library - DSA Course in Python Lecture 9

Trees Compared and Visualized | BST vs AVL vs Red-Black vs Splay vs Heap | Geekific

Trees Compared and Visualized | BST vs AVL vs Red-Black vs Splay vs Heap | Geekific

Advanced Data Structures: Treap Insertion

Advanced Data Structures: Treap Insertion

Matrix Chain Multiplication - Динамическое программирование (DP) Скобки для печати - Java

Matrix Chain Multiplication - Динамическое программирование (DP) Скобки для печати - Java

Тоннель под Ла-Маншем | Потрясающие инженерные решения, лежащие в его основе

Тоннель под Ла-Маншем | Потрясающие инженерные решения, лежащие в его основе

Космическая плазма: что происходит между Солнцем и Землёй – Семихатов, Зелёный

Космическая плазма: что происходит между Солнцем и Землёй – Семихатов, Зелёный

Структура данных непересекающихся множеств — руководство по поиску объединения

Структура данных непересекающихся множеств — руководство по поиску объединения

10.2  B Trees and B+ Trees. How they are useful in Databases

10.2 B Trees and B+ Trees. How they are useful in Databases

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]