View Single Post
Old 11-17-2003, 07:18 PM   #11 (permalink)
Rekna
Junkie
 
hmm

Edit used periods to help with spacing

Here is the way I did it but I came up with a different solution then the problem. Can anyone find my logic error?

First I make one assumption:

The maximum height of the entire bubble tree can be found by maximizing the height of every touching pair of bubbles.

Now if this is incorrect someone please explain to me why.

Ok the rest will be full of crappy notation that can be written very well in this text editor but I will try.

First we draw a line going horizontal across each radius. This breaks our tree into n+1 intervals (1 interval is the bottom of the base circle radius, 1 interval is the top circle radius, and the rest of the intervals are the distances between consecutive radiuses.

If we denote the distance between the Nth and Nth+1’s circles radius as D(n) and the radius of the Nth circle as R(n) we then have our height

H(n)=R(1)+R(n)+[D(1)+...+D(n-1)]

Ok I hope you are still following (a tablet PC would be nice right about now).

Let’s now look at a simple example with 2 circles.

If we set the radius of our larger circle to be R(n) and the smaller circles radius to be R(n+1) then we can say the following.

If we draw a line between the radius of the larger circle and connect it to a point where the two circles touch that distance is R(n). Then if we draw from the bottom circle’s radius straight up to the top circles radius and then complete the triangle we have the following triangle.

...... R(n+1)
...... -------
...... |...../
D(n)..|..../ R(n)
...... |../
...... |/
We then have D(n)=sqrt(R(n)^2-R(n+1)^2)

Back to our original height equation for 2 circles we now have

H(n+1)= R(n) + R(n+1) + D(n)

H(n+1)= R(n) + R(n+1) + sqrt(R(n)^2-R(n+1)^2)

We now want to maximize this using R(n+1) as our variable

R(n) is a constant

H’(n)=1-1*R(n+1)/sqrt(R(n)^2-R(n+1)^2)

Setting this equal to zero and solving gives us

R(n+1)=R(n)/sqrt(2)

This is a FO linear recursion with which gives us a general solution of

R(n)=(1/sqrt(2))^(n-1)*R(1)

So we now know the maximized radius at every height. Our calc work is done and now all we need to do is a simplifying of our original series


H(n)=R(1)+R(n)+[D(1)+...+D(n-1)]

We know R(1)=1
We know R(n)=(1/sqrt(2))^(n-1)

So now let’s look at our summation of the Ds

n-1
Sum sqrt[ ((1/sqrt(2))^(2k-2) – (1/sqrt(2))^(2k)) ]
k=1


working with what is inside of the outside sqrt we can factor out a (1/sqrt(2))^(2k-2) leaving us with

n-1
Sum sqrt[ ((1/sqrt(2))^(2k-2)*(1 – (1/sqrt(2))^2) ]
k=1

OR

n-1
Sum sqrt[ ((1/sqrt(2))^(2k-2)*(1/2) ]
k=1


By putting in the outer square root as a 1/2 power we have

n-1
Sum (1/sqrt(2))^(k-1)*(1/sqrt(2))
k=1

We can then place the last 1/sqrt(2) into our exponent by adding 1 to th power.

n-1
Sum (1/sqrt(2))^k
k=1

Now don’t forget about our first 2 terms that we still have. We have the 1 + (1/sqrt(2))^(n-1)

We can add our 1 directly into our sum by lowering k by 1.


.......................n-1
(1/sqrt(2))^(n-1) + Sum (1/sqrt(2))^k
.......................k=0

The summation is now a geometric series with base 1/sqrt(2) giving us the final equation for H(n)

H(n)= (1/sqrt(2))^(n-1) + 1-(1/sqrt(2))^n
..............................--------------------
....................................1-1/sqrt(2)

Placing values into this match the equation 1+sqrt(n) for H(1) and H(2). After that it gets of a minor amount.

My guess is my initial assumption might be wrong.

Last edited by Rekna; 11-17-2003 at 07:25 PM..
Rekna is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360