Тёмный

Identifying Isomorphic Trees | Source Code | Graph Theory 

WilliamFiset
Подписаться 179 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@mayankpant1596
@mayankpant1596 Год назад
Feels really nice when you are able to code this all on your own. Thanks a lot man. Your lectures are a blessing.
@curtism7302
@curtism7302 3 года назад
I am definitely going to have to watch this more than 8-12 times.
@Doomguards
@Doomguards 4 года назад
Thanks for the effort you put in these :)
@tusharrawat1581
@tusharrawat1581 4 года назад
What would be the time complexity for the encode function? I think it should be O(v + e) + O(v * k * clogc), where v = num nodes, e = num edges, c = number of children & k = length of subtree encoding. For every node in the tree, we are sorting labels array which consists of node.children.size() (c) strings each of length let's say k (multiple of 2) so it would take (k * clogc) in sorting encodings of subtrees and for every v vertex in the tree time would be O(v * k*clogc). Is this analysis correct? If yes how to express k and c in terms of v and e.
@kevintran6102
@kevintran6102 4 года назад
This is awesome. I learned a lot from you.
@mersenne2486
@mersenne2486 5 месяцев назад
awesome, could anyone tell how to implement the lexicographic sorting in c++
@rushilp1230
@rushilp1230 4 года назад
It would have been good if you could explain what is the structure of the trees, and how your representing them. How is the tree represented as List ?
@BPShyam
@BPShyam 4 года назад
It is a adjacency list. You could refer to the first video in the playlist...
@GotUpLateWithMoon
@GotUpLateWithMoon 2 года назад
In last video, each treeNode is defined as a class with id, parent and children. Apparently each node is only linked only to its neighbors now using adjacency list and the class is reduced to an integer id. It would be helpful to point out the gap since the representation changed a bit and it affects the implementation.
@rashigupta9613
@rashigupta9613 3 года назад
What if the first tree has two children?
@mersenne2486
@mersenne2486 5 месяцев назад
you mean two center nodes
Далее
Identifying Isomorphic Trees | Graph Theory
11:13
Просмотров 30 тыс.
кого отпустят гулять чееек
00:53
Самое неинтересное видео
00:32
Beginner tree algorithms | Graph Theory
9:54
Просмотров 37 тыс.
Coding Adventure: Ant and Slime Simulations
17:54
Просмотров 1,9 млн
A 90-year-old Unsolved Telephone Question
28:45
Просмотров 68 тыс.
Topological Sort | Kahn's Algorithm | Graph Theory
13:32