Random vs. Sequential

Discussion in 'C Programming' started by rayw, Nov 28, 2005.

  1. rayw

    rayw Guest

    I was wondering if there were some good on-line references to the various
    pros/cons with these types of file access at all?

    Ta

    rayw
     
    rayw, Nov 28, 2005
    #1
    1. Advertisements

  2. rayw wrote:
    >
    > I was wondering if there were some good on-line references to the various
    > pros/cons with these types of file access at all?


    (Please include the relevent information in the body of the message. I
    am assuming that "these types of file access" refers to the subject's
    "Random vs. Sequential".)

    Imagine a database of two million names. How would you update the one
    millionth record? Would random or sequential access be better?

    Imagine a C source file. Would random or sequential access make more
    sense?

    The "pro" is one is better for the task at hand. The "con" is that the
    same one is not necessarily appropriate for a different task.

    --
    +-------------------------+--------------------+-----------------------------+
    | Kenneth J. Brody | www.hvcomputer.com | |
    | kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
    +-------------------------+--------------------+-----------------------------+
    Don't e-mail me at: <mailto:>
     
    Kenneth Brody, Nov 28, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darren Clark

    Random NOt random?

    Darren Clark, Jun 24, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    623
    mikeb
    Jun 24, 2004
  2. Maziar Aflatoun

    Random not really random...

    Maziar Aflatoun, Aug 4, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    27,158
    Maziar Aflatoun
    Aug 5, 2004
  3. Lars-Erik Aabech
    Replies:
    8
    Views:
    1,019
    Lars-Erik Aabech
    Apr 28, 2005
  4. Elmar Baumann
    Replies:
    0
    Views:
    744
    Elmar Baumann
    Feb 2, 2004
  5. Kevin
    Replies:
    19
    Views:
    1,369
    Tris Orendorff
    Feb 13, 2006
  6. JNY
    Replies:
    25
    Views:
    2,799
    Lawrence Kirby
    Dec 30, 2004
  7. globalrev
    Replies:
    4
    Views:
    1,080
    Gabriel Genellina
    Apr 20, 2008
  8. VK
    Replies:
    15
    Views:
    1,920
    Dr J R Stockton
    May 2, 2010
Loading...