Raised This Month: $ Target: $400
 0% 

Read data from file and later on search throu that data


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-02-2010 , 21:16   Re: Read data from file and later on search throu that data
Reply With Quote #5

Quote:
Originally Posted by Jack86 View Post
How could i efficiently store bunch of strings from a file and later compare all of them one by one with another string until i find a match ?
Quote:
Originally Posted by Jack86 View Post
I did read about tries, but as i as seem to understand it, it saves data in pairs by key and value, and i only need to save certain values and seach them.
It really depends on what you do with the the "found" match. If you just need to know if the string is in the list Tries are great. There are other great ways they can be used also.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode