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

  • Home
  • SEARCH
  • 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 4245890
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:54:01+00:00 2026-05-21T03:54:01+00:00

I have a file containing about 170,000 words or so. What would be the

  • 0

I have a file containing about 170,000 words or so. What would be the best way of dealing with this in .NET?

Does it make sense to load it into a List keep in memory and search the list. Would a list of this size be an issue to keep in memory? Any suggestions in regards to loading and searching this type of list would be appreciated.

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-21T03:54:01+00:00Added an answer on May 21, 2026 at 3:54 am

    Does it make sense to load it into a List keep in memory and search the list. Would a list of this size be an issue to keep in memory?

    Unless your words are very long, memory will not be an issue here.

    If you are speaking of the English language on the standard Latin alphabet then memory will not be an issue.

    But you have to be specific on your word length. If you are dealing with, say, words on {A, C, G, T} and those words happen to be DNA then, yes, memory will be an issue.

    Any suggestions in regards to loading and searching this type of list would be appreciated.

    What type of search are you doing? Are you searching for existence or are you searching for a nearest match (say, a nearest alphabetical match)? If just existence, use a HashSet<string>. If nearest alphabetical match, I would start with a sorted List<string> and do a binary search. But if your words are very long, I might consider something like a prefix tree.

    The answer to this last question depends deeply on what exactly is it you are doing.

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

Sidebar

Related Questions

I have a TXT file containing about 10,000 lines of text. I want to
I have a list containing about 1000 file names to search under a directory
I have a file containing some data (for example, 00927E2B112DB958......). This data is a
I have a CSV file containing some user data it looks like this: 10333,,an.10,Kenyata,,Aaron,,,,,,,,,,
if i have a file containing say (age,weight,city,town,height) is there a way to restructure
i have a csv file containing telephone numbers. There is about 15 numbers with
I have a data file containing a combination of doubles and strings like this:
I have a file numbers.dat containing about 300 numbers(floating point,negative positive)in column format. The
I have an xml file containing basic information about products, with the following structure:
I have a file containing roughly all the words in English (~60k words, ~500k

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.