compressed trees
Разница между en1 и en2, 284 символ(ов) изменены
i was reading the tutorial for problem E from this round↵
https://codeforces.com/blog/entry/125943↵

and it says that "And as it is known, the number of edges in the compressed tree is O(k)"↵

i couldnt find anything about it on the internet does anyone have a proof on why we have O(k) edges in a compressed tree ?




edit : i realized how stupid i was asking this question since we can have atmost 2k — 1 vertices in a compressed tree (where k is the number of important vertices in the main tree) there can be at most 2k — 2 edges since a tree will always have n — 1 edges↵

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Axial-Tilted 2024-03-30 06:59:18 284
en1 Английский Axial-Tilted 2024-03-30 06:50:18 333 Initial revision (published)