GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  Aptitude
Go To First  |  Previous Question  |  Next Question 
 Aptitude  |  Question 147 of 149    Print  
File transfer Question
A file is transferred from one location to another in ,buckets,. The size of the bucket is 10 kilobytes. The bucket gets filled at the rate of 0.0001 kilobytes per millisecond. The transmission time from sender to receiver is 10 milliseconds per bucket. After the receipt of the bucket the receiver sends an acknowledgement that reaches sender in 100 milliseconds. Assuming no error during transmission, write a formula to calculate the time taken in seconds to successfully complete the transfer of a file of size N kilobytes.


  
Total Answers and Comments: 6 Last Update: December 14, 2008     Asked by: abhijit_de2000 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: amitsha
 
rate=1 ms -> .0001kb
    or 1 kb  -> 10000ms
       N kb  -> N*10000ms
10ms(to reciver)+N*10000ms(to fill)+100ms(for recipent)=(110+N*10000)ms

Above answer was rated as good by the following members:
hydsarema
July 18, 2008 02:33:26   #1  
wasim.madiwale Member Since: July 2008   Contribution: 1    

RE: File transfer Question
T N * 1000.011 seconds
 
Is this answer useful? Yes | No
July 25, 2008 08:55:26   #2  
ajaycjoseph Member Since: July 2008   Contribution: 1    

RE: File transfer Question
100.11*n
 
Is this answer useful? Yes | No
August 07, 2008 11:05:07   #3  
amitsha Member Since: August 2008   Contribution: 1    

RE: File transfer Question
rate 1 ms -> .0001kb
or 1 kb -> 10000ms
N kb -> N*10000ms
10ms(to reciver)+N*10000ms(to fill)+100ms(for recipent) (110+N*10000)ms

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 17, 2008 08:04:03   #4  
arsi_mars Member Since: August 2008   Contribution: 1    

RE: File transfer Question
(i) total time to fill Nkb 10000N
10 kb >1bkt
N kb > N/10 bucket
(ii)To send 10 ms per bucket so for N/10 bucket it is N ms
(iii) Now acknowledge for 1 bkt 100ms
Acknowledge for N/10 bkt (N/10)*100 10N
Total time- 10000N+N+10N 10011N answer

 
Is this answer useful? Yes | No
November 08, 2008 08:57:22   #5  
Raze2dust Member Since: November 2008   Contribution: 3    

RE: File transfer Question
Bucket is filled at 0.1 kbps. So each bucket takes 100 s. There are N/10 buckets.
Each bucket takes 0.01 s to transmit and 0.1 s more to get the acknowledgement.

Let there be k full buckets...Time taken to fill them 100k
Remaining N 10 kbs will take [(N 10)/10]*100 s (N 10)*10 s

Transmission+acknowledment needs further 0.01+0.1 s

So total time 10N+(N 10)*10+0.11 10[N+N 10+0.011]

 
Is this answer useful? Yes | No
December 13, 2008 11:57:20   #6  
prasadude Member Since: December 2008   Contribution: 1    

RE: File transfer Question
the speed at which a bucket filled is is 0.0001 kilobytes per millisecond
this is re-written as 0.1 kilobytes per second
i.e 100 seconds to fill a bucket which is 10kb in size
transmission time is 10 milliseconds or .01 sec
reception time is 100 milliseconds or .1 sec
the total time is 100+.01+.1 100.11 sec

the size of a file is N kb
it must thus contain N/10 buckets
thus the total time required is N/10 * (100.11) N*10.011 seconds


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape