кстати о двоичных деревьях
Jul. 16th, 2018 09:53 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Сегодня на работе сюрприз. Пришлось мне в XmlObject вставлять другие XmlObjects, как children. И вот вдруг обнаружил - коли ты его куда-то вставляешь, то у него имя изменяется! Вставь в два объекта - ну соответственно.
Нет, ну я думал, что эта эпоха идиотов давно прошла, лет 10 назад. Ан нет. Они все там же.
Нет, ну я думал, что эта эпоха идиотов давно прошла, лет 10 назад. Ан нет. Они все там же.
no subject
Date: 2018-07-17 06:45 pm (UTC)No, it's like for a function A->B, knowing B you can find A. Axiom of choice?..
no subject
Date: 2018-07-17 07:10 pm (UTC)OTOH, ok, suppose a function. Should 'b' know which 'a' gets mapped to it by some function it has no knowledge about? I mean, finding a partial inverse or something is a function of that `f`, not a function on B. But how is it related anway? Do you mean to represent a tree as a function? Not as, e.g., a binary relation?
no subject
Date: 2018-07-17 07:27 pm (UTC)The sets of children may intersect, then, of course, you can't have the inverse, Child_i->Parent. But when you do have the inverse, then you can't have the intersecting sets of children.
no subject
Date: 2018-07-17 07:42 pm (UTC)