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 6002003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:54:56+00:00 2026-05-23T00:54:56+00:00

We need to keep some in-memory data structure to keep english word dictionary in

  • 0

We need to keep some in-memory data structure to keep english word dictionary in memory.
When the computer/wordweb starts,we need to read dictionary from disk into an in-memory data structure.

This question asks how do we populate from disk to in-memory data structure in typical real world dictionaries say wordweb?

Ideally we would like to keep dictionary in disk in the way, we require it in in-memory, so that we don’t have to spend time building in-memory data structure, we just read it off the disk. But for linked lists, pointers etc, how do we store the same image in disk. Some relative addresses etc would help here?

Typically, is the entire dictionary read and stored in memory. or only part/handlers and leaf page IOs are done, when searching for a specific word.

If somebody wants to help with what that in-memory data structure is typically, please go ahead.

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-23T00:54:57+00:00Added an answer on May 23, 2026 at 12:54 am

    You mentioned pointers, so I’m assuming you’re using C++; if that’s the case and you want to read directly from disk into memory without having to “rebuild” your data structure, then you might want to look into serialization: How do you serialize an object in C++?

    However, you generally don’t want to load the entire dictionary anyway, especially if it’s a user application. If the user is looking up dictionary words, then reading from disk happens so fast that the user will never notice the “delay.” If you’re servicing hundreds or thousands of requests, then it might make sense to cache the dictionary into memory.

    So how many users do you have?
    What kind of load are you expecting to have on the application?

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

Sidebar

Related Questions

I need to keep the arrow keys from being able to scroll through my
I'm making a game and I need to be able to ship some data
I need to keep the files & folders on two Windows-based, non-domain machines synchronized
I need to keep as much as I can of large file in the
I need to keep an NSPathControl updated with the currently selected path in an
I need to keep a couple of Jena Models (OntModels, specifically) synchronized across a
The problem that I am having has to do with the need to keep
Or they (team members) need someone to keep pushing? Edit: The above line was
In WPF need to trap the keys entered in a textblock to keep the
Need a function that takes a character as a parameter and returns true if

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.