Скачать
How this trick speeds up Tree Algorithms by x100 | Binary Lifting Explained
Автор: Fully Attributed
Загружено: 2025-10-31
Просмотров: 144
Описание: This video explores how Binary Lifting transforms slow linear tree traversals into efficient logarithmic-time operations. Starting from a simple parent array representation, we build up the intuition behind precomputing jumps of size 1, 2, 4, 8, and so on, allowing any kth ancestor to be found in O(log n) time after O(n log n) preprocessing. Through clear examples and visual explanations, we’ll see how this elegant idea not only speeds up ancestor queries but also forms the foundation for solving problems like Lowest Common Ancestor and other tree-related computations efficiently.
Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: