- Thoughts.
- Not only is it possible, but it’s a lot of work to maximize the vertices…
- When does the number of vertices increase?
- Should we try to make it as scanty as possible?
- Huh? Same thing, huh?
- It is not uniquely determined by…
- Start with 1, subtract A0 and multiply by 2, which is the number of vertices at the next height, then subtract A1, which is the leaves, and multiply by 2, which is the number of vertices at the next height.
- If this is just 0 at the end, it is feasible
- The number of vertices is unique since it is obtained above.
- Official Explanation
- Ah, I see, “the number of children is less than or equal to 2”, so there can be a vertex with one child.
- Problem condition misunderstanding. Think again.
- Ah, I see, “the number of children is less than or equal to 2”, so there can be a vertex with one child.
- A new thought.
-
In other words, it’s times like these that make the difference.
-
If the vertex at the top height is x, then we can put at most 2x vertices at the current height
-
Ai of them are used as leaves.
-
You can’t have all 2x-Ai vertices.
- Without the apex of the child, it would be a leaf.
- If we hang the vertices of the children as unbundled as possible, we can create vertices up to the sum of the number of children.
-
Do the smaller of the two values.
-
- Official Explanation
- It proves optimal to place as many vertices as possible in the above way
This page is auto-translated from /nishio/nomura2020C using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.