Блог пользователя gauti786

Автор gauti786, история, 7 лет назад, По-английски

Please go to the UVA problem link..****

I was considering as length = N, width = 1, height = 1, which leads us to surface area = 2(N*1 + 1*1 + N*1)?

Why this is incorrect, and we need to go through all the combination of length, width, and height?

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

If N = n^3 then your solution requires Θ(n3) area but an n x n x n cube can be wrapped by a paper with Θ(n2) area.

»
7 лет назад, # |
Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

You are just putting cubes like 1xn tower in your solution, but let's see one example:

n = 8

Your construction
Optimal construction

Hope you understood.

(Sorry for poor paint skills)