Click here to Skip to main content
16,007,932 members
Home / Discussions / C#
   

C#

 
GeneralRe: Treeview question Pin
Aaron Schaefer1-Mar-05 11:19
Aaron Schaefer1-Mar-05 11:19 
GeneralRe: Treeview question Pin
Luis Alonso Ramos1-Mar-05 10:52
Luis Alonso Ramos1-Mar-05 10:52 
GeneralRe: Treeview question Pin
Aaron Schaefer1-Mar-05 11:13
Aaron Schaefer1-Mar-05 11:13 
Questionwhat is the fastest way to access files?? Pin
penecilllin1-Mar-05 2:52
penecilllin1-Mar-05 2:52 
AnswerRe: what is the fastest way to access files?? Pin
Esmo20001-Mar-05 4:03
Esmo20001-Mar-05 4:03 
GeneralRe: what is the fastest way to access files?? Pin
Dave Kreskowiak1-Mar-05 7:08
mveDave Kreskowiak1-Mar-05 7:08 
GeneralRe: what is the fastest way to access files?? Pin
Esmo20001-Mar-05 10:57
Esmo20001-Mar-05 10:57 
AnswerRe: what is the fastest way to access files?? Pin
J4amieC1-Mar-05 6:00
J4amieC1-Mar-05 6:00 
first a disclaimer: I have zero experience with PDA apps (Im used to Server Apps where I can almost rely on there be more memory than I could use Smile | :) )

Just wanted to throw an idea out to you, maybe its something you could investigate. It strikes me that what you need is some form of index - so that you can start by making some sort of educated guess as to where the word is.. then you can load a subset of the entire dictionary into memory and search through that for the correct word.

So lets assume you have all the words/meanings in a text file, separated by a newline.

aardvark - An animal
antelope - Another animal
bird - A flying animal
branch - Where birds make their nests
bukakke - er, not suitable
cat - A feline animal

When you install your application, or update your dictioanry data, you could also update/install smaller textfile with an index of where each starting letter begins and ends.. for the above this would be

a, 0, 1
b, 2, 4
c, 5, 5

etc

Now, when you start your app load up the index for future use. When somebody enters a word to lookup, grab the first letter of the word, and query your "index" for the starting and ending location for that letter. Now load up the dictionary data but only store in memory the lines between start->end. Now enumerate this smaller list until you find the right word.

Not sure if this helps but thought it may give you some extra things to think about
GeneralRe: what is the fastest way to access files?? Pin
Esmo20001-Mar-05 11:01
Esmo20001-Mar-05 11:01 
GeneralMessage Closed Pin
1-Mar-05 11:49
penecilllin1-Mar-05 11:49 
GeneralRe: what is the fastest way to access files?? Pin
Esmo20002-Mar-05 3:02
Esmo20002-Mar-05 3:02 
Generalto manage bitmap pixels Pin
Anonymous1-Mar-05 2:18
Anonymous1-Mar-05 2:18 
GeneralRe: to manage bitmap pixels Pin
Dave Kreskowiak1-Mar-05 3:39
mveDave Kreskowiak1-Mar-05 3:39 
GeneralRe: to manage bitmap pixels Pin
Anonymous1-Mar-05 4:24
Anonymous1-Mar-05 4:24 
GeneralRe: to manage bitmap pixels Pin
Dave Kreskowiak1-Mar-05 11:42
mveDave Kreskowiak1-Mar-05 11:42 
Generalpass events across projects Pin
Member 4558381-Mar-05 1:27
Member 4558381-Mar-05 1:27 
QuestionRegex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 0:37
ektoras1-Mar-05 0:37 
AnswerRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
J4amieC1-Mar-05 1:10
J4amieC1-Mar-05 1:10 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 1:18
ektoras1-Mar-05 1:18 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
Dave Kreskowiak1-Mar-05 3:34
mveDave Kreskowiak1-Mar-05 3:34 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 3:56
ektoras1-Mar-05 3:56 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
Dave Kreskowiak1-Mar-05 7:03
mveDave Kreskowiak1-Mar-05 7:03 
AnswerRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
leppie1-Mar-05 2:04
leppie1-Mar-05 2:04 
GeneralRe: Regex(@"[_A-Za-z]+[A-Za-z]\w*") Can it be improved ? Pin
ektoras1-Mar-05 3:51
ektoras1-Mar-05 3:51 
GeneralManaged or Unmanaged in C# Pin
Subrahmanyam K1-Mar-05 0:37
Subrahmanyam K1-Mar-05 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.