Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6539729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:53:38+00:00 2026-05-25T10:53:38+00:00

I have 2 database files and among those one I had to search for

  • 0

I have 2 database files and among those one I had to search for which I used 4 methods namely: in-memory sequential, in-memory binary, disk sequential and disk binary. The file which needed to be searched was 20Kb in size. The expected running time for these 4 programs should have been

disk sequential > disk binary > in-memory sequential > in-memory binary but its coming out to be
disk binary > disk sequential > in-memory sequential > in-memory binary.

Disk binary is taking around 1.5 sec more than the disk sequential. Why so?
I have calculated the time as printing the time before opening the file and then after opening the file and doing the search.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:53:38+00:00Added an answer on May 25, 2026 at 10:53 am

    It can depends on the small size of your file; disk is not like main memory, it’s divided in blocks and your file won’t be probably bigger than 20 blocks.
    So log_2(20) is about 5 and then binary search won’t be better unless what you’re searching for is after the fifth block.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database table where the user marks files to be downloaded. Subsequently,
I have some xml data contained in three files (Database.xml, Participants.xml, and ConditionTokens.xml). I
We have multiple log files like database log, weblog, quartzlog in our application. Any
I have currently got imagepaths stored within the database and image files stored in
I have some files stored in a database blob column in Oracle 9. I
I have many (>600) EPS files(300 KB - 1 MB) in database. In my
i have csv files, java app and database, i read csv file from my
I have a crashed/hacked Joomla installation (Files and Folders only) Database has NOT been
My database is being driven by my NHibernate mapping files. I have a Category
We have a sharepoint based application that uses a custom database for storing metadata/files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.