Loading a video on the internet

  • Thread starter Thread starter guss
  • Start date Start date
  • Tags Tags
    Internet Video
guss
Messages
246
Reaction score
0
This isn't a homework problem, but I'm going to make it sound like one because I think that's the best way to explain it.

An hour-long video on the computer loads 1/3rd of a second of footage every second. The video can be played while it is loading.

a)What is the minimum amount you have to wait, if the video has just begun loading, before you can play the whole video uninterrupted (as in, without having to wait for it to load)?

b)If you wait 4 minutes, then play the video, how long until the video gets interrupted and requires more footage to be loaded?

They are supposed to be tricky because (for example in b) while you are playing the first 4 minutes of footage, more footage will continue to load. And while you are playing that footage, even more footage will load. And so on.

I think the solution to this problem is probably simple, I'm just curious on how to do it.
 
Mathematics news on Phys.org
You can convert these kinds of problems into algebraic expressions. For example, let's define x to be minutes passed and y to be the length of footage.

For the video loading, it would be described by y=x/3 because as every minute passed, 1/3 of the footage has been loaded. At y=60 (60 minutes of footage) x=180 (minutes taken to load the video).

For watching the video, we can describe it by y=x-c (c is some constant that represents the time at which we start watching) because for every minute watched, a minute of footage passes.

Now we find the intersection of these lines and substitute in a value of x or y that we know, but an easier way is just to take the second equation and let y=60, x=180 then 60=180-c, thus c=120. So to watch the video without waiting for it to load we need to start watching at least 2 hours into the loading.

Can you try the second question?
 
Yeah, this is pretty simple...

In particular, part 'a' can be solved by simple reasoning...basically, it takes 3 times as long to download than to watch, so, a 1-hour long video is going to take 3 hours to download; if you want to watch it uninterrupted, you need to start 1 hour before it finishes downloading...that is, you need to start watching 2 hours into the download.

Part 'b' is best solved by drawing two lines and finding the intersection...the first (downloading) line starts at the origin with a slope of 1/3...the watching line starts at the 4 minute mark with a slope of 1 ...find the intersection and that's when you need to wait for more download.
 
Thanks guys! Makes a lot of sense now. I was wayyy over thinking this problem. A way I thought of to solve b soon after I made this post was to do this infinite sum:

\sum\limits_{i=0}^\infty 4(\frac{1}{3})^i

Which would give 6 minutes. But now I see it's more simple than that.
 
guss said:
Thanks guys! Makes a lot of sense now. I was wayyy over thinking this problem. A way I thought of to solve b soon after I made this post was to do this infinite sum:

\sum\limits_{i=0}^\infty 4(\frac{1}{3})^i

Which would give 6 minutes. But now I see it's more simple than that.

Ahh I'm not surprised you had this approach infused in your head. Since the start you were worried about the continuous loading as you watched:

guss said:
while you are playing the first 4 minutes of footage, more footage will continue to load. And while you are playing that footage, even more footage will load. And so on.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top