Help with Sequential Files

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Nov 2006
Posts: 12
Reputation: BiGPrO is an unknown quantity at this point 
Solved Threads: 0
BiGPrO BiGPrO is offline Offline
Newbie Poster

Help with Sequential Files

 
0
  #1
Dec 9th, 2006
I need help with this please.

Suppose we have a sequential file that contains 50,000 records, and 5 milliseconds are required to interrogate an entry. How long should we expect to wait when retrieving a record from the middle of the file?


Could someone please help me with this question?

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,842
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 752
Team Colleague
Narue's Avatar
Narue Narue is online now Online
Senior Bitch

Re: Help with Sequential Files

 
0
  #2
Dec 9th, 2006
>How long should we expect to wait when retrieving a record from the middle of the file?
50000 / 2 * 5 = 125000 milliseconds without any details on what the difference is between 'interrogating' and 'retrieving', and assuming by 'middle' you really do mean the middle.
New members chased away this month: 4
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 12
Reputation: BiGPrO is an unknown quantity at this point 
Solved Threads: 0
BiGPrO BiGPrO is offline Offline
Newbie Poster

Re: Help with Sequential Files

 
0
  #3
Dec 9th, 2006
Thanks a lot Narue, I was in doubt, but your answer really helped a lot. Thanks again for the help. Really appreciate it.

regards,

BiGPrO
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,618
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1491
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Help with Sequential Files

 
0
  #4
Dec 9th, 2006
In USA that would be a question most 8th graders could answer. You will be pretty lost in programming if you do not have at least that level of mathametical skills. You should probably take a remedial math course to bone up on algrbra and trigonometry. and there are many specialties of programming that require much higher level math skills.
Last edited by Ancient Dragon; Dec 9th, 2006 at 4:01 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 12
Reputation: BiGPrO is an unknown quantity at this point 
Solved Threads: 0
BiGPrO BiGPrO is offline Offline
Newbie Poster

Re: Help with Sequential Files

 
0
  #5
Dec 10th, 2006
Well, Ancient Dragon, you see, we are not in the USA, and Goerge Bush, as David Letterman said, is infecting everybody! :-) I am trying to get into programming, not a programmer, there are things done differently in math sometimes.


Thanks for your feedback thoguh, very fruitful, you didn't have to take the efforts, next time I guess no need to ask, better live in ignorance!

regards.....
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,117
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 282
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Help with Sequential Files

 
0
  #6
Dec 10th, 2006
Originally Posted by BiGPrO View Post
Thanks for your feedback thoguh, very fruitful, you didn't have to take the efforts, next time I guess no need to ask, better live in ignorance!
Don't do that! I agree with you that if you've never come across a problem before you don't always know if there are hidden considerations. Many problems that look simple are really complex, especially if you're new to a field.
Last edited by WaltP; Dec 10th, 2006 at 4:19 am.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 12
Reputation: BiGPrO is an unknown quantity at this point 
Solved Threads: 0
BiGPrO BiGPrO is offline Offline
Newbie Poster

Re: Help with Sequential Files

 
0
  #7
Dec 10th, 2006
Thanks WaltP for your positive thinking and that is why, taking the word from experienced people is better. It is their field of study, programming, there are always hidden consideration or different opinions, while one solution could work better, other solutions might work best.

Thanks again for the feedback and advice.

regards....
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,618
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1491
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Help with Sequential Files

 
-1
  #8
Dec 10th, 2006
Originally Posted by BiGPrO View Post
you see, we are not in the USA, I am trying to get into programming, not a programmer, there are things done differently in math sometimes.
It doesn't matter where you live -- you will need equivalent math background wherever you live. programming is programming and does not discriminate based on the earth you live on. So if you don't have it, then you need to get it before you can be a successful programmer.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 12
Reputation: BiGPrO is an unknown quantity at this point 
Solved Threads: 0
BiGPrO BiGPrO is offline Offline
Newbie Poster

Re: Help with Sequential Files

 
0
  #9
Dec 10th, 2006
Math will not do you good if you don't understand the question. Understanding the question is half of the answer. That is the problem, sometimes ambiguity with the questions. As Narue said "assuming by 'middle' you really do mean the middle". I cannot do the answer other than doing the math, but programmers might have different ways for reaching the result.

Also, those who are really into programming, they have been closely working at different math problems to reach the best result at the most optimal time.

regards......
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1
Reputation: Phibes is an unknown quantity at this point 
Solved Threads: 0
Phibes Phibes is offline Offline
Newbie Poster

Re: Help with Sequential Files

 
0
  #10
Mar 12th, 2007
Originally Posted by Ancient Dragon View Post
It doesn't matter where you live -- you will need equivalent math background wherever you live. programming is programming and does not discriminate based on the earth you live on. So if you don't have it, then you need to get it before you can be a successful programmer.
All very true dragonbreath, BUT I thought you were somewhat condescending to the newbie.

If you really are so keen on math I would hope you are disappointed to realise you missed the fact that there ISN'T a middle record in a 50,000 record sequential file. You would have to pick either 25,000th or 25,001st. Advice: check your math.

Also, I was wondering if you help me with a programming math problem I am working on; I'm wanting to implement a fast-fourier-transform (using complex exponentials of course, NOT trigonometric functions:-) and I was hoping you could explain why it is important to note that the discrete fourier transform considers an aperiodic function (hence the need for a fourier transform) as a periodic function when implementing on a computer. I only ask becasue I know you are keen on programming AND math!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC