Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

AksLolCoding's blog

By AksLolCoding, history, 12 days ago, In English
  • Vote: I like it
  • +2
  • Vote: I do not like it

By AksLolCoding, history, 12 days ago, In English

I have a problem as follows: You are given a weighted tree and a number L. You can do the following exactly once: choose a pair of nodes and add an edge of length L between them. Over all possible resulting graphs, what is the smallest possible diameter?

The editorial states that it is optimal for the chosen pair of nodes to both lie on a diameter of the original tree, but the proof is left as an exercise to the reader. I could not prove this, but can anyone explain why this is always optimal?

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By AksLolCoding, history, 4 weeks ago, In English

Jiangly's profile now shows the title of "Rating4000_887306" at the top but still says "jiangly" everywhere else.

Full text and comments »

  • Vote: I like it
  • +18
  • Vote: I do not like it