Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListBox & Dialog Box :: MFC Pin
Chris Losinger5-Jun-02 10:18
professionalChris Losinger5-Jun-02 10:18 
GeneralRe: CListBox & Dialog Box :: MFC Pin
valikac5-Jun-02 12:26
valikac5-Jun-02 12:26 
GeneralFastest Search Technique Pin
Sidney5-Jun-02 9:05
Sidney5-Jun-02 9:05 
GeneralRe: Fastest Search Technique Pin
Mike Nordell5-Jun-02 9:30
Mike Nordell5-Jun-02 9:30 
GeneralRe: Fastest Search Technique Pin
Jason Henderson5-Jun-02 9:31
Jason Henderson5-Jun-02 9:31 
GeneralRe: Fastest Search Technique Pin
Joel Holdsworth5-Jun-02 10:02
Joel Holdsworth5-Jun-02 10:02 
GeneralRe: Fastest Search Technique Pin
Sidney5-Jun-02 10:10
Sidney5-Jun-02 10:10 
GeneralRe: Fastest Search Technique Pin
Christopher Lord5-Jun-02 10:29
Christopher Lord5-Jun-02 10:29 
although this requires that you restructure your data, trees are a very fast way of searching strings.

you start out with a list of the alphabet, and you select the first letter of your alphabet from the tree. the next level has all the letters that follow that letter in your search space, and you select the one you want. There may be only one letter that ever follows 'z' in your database, and so you find your entry in two steps from any number of records (possibly millions)

it looks like:

/// we are looking for 'Automatic' in a 
/// file of one hundred thosand entries...
A
-u
--t
---o
----m
-----atic //// Found in 6 steps!
-----aton
----e // Contains autoerotic, etc
----b // contains autobiotic, etc
--d
-b
-s
-r
B
C
D
E
[...].X
Y
Z


This could also be termed 'search space constraint', since you are looking only in the part of the file you wish to see based on your search string. and that applies to the constraint itself (searching a subset of a subset of a subset of data) and in this way is similar to the 1/2, 1/4, 1/8 etc method, but keeps in mind that we can cull about 1/26th in the first step, and less in each step after.

// Rock
GeneralRe: Fastest Search Technique Pin
Paul M Watt5-Jun-02 10:40
mentorPaul M Watt5-Jun-02 10:40 
GeneralRe: Fastest Search Technique Pin
Sidney5-Jun-02 11:09
Sidney5-Jun-02 11:09 
GeneralRe: Fastest Search Technique Pin
Paul M Watt5-Jun-02 12:20
mentorPaul M Watt5-Jun-02 12:20 
GeneralRe: Fastest Search Technique Pin
jan larsen6-Jun-02 0:05
jan larsen6-Jun-02 0:05 
GeneralRe: Fastest Search Technique Pin
Ed Gadziemski5-Jun-02 12:32
professionalEd Gadziemski5-Jun-02 12:32 
GeneralRe: Fastest Search Technique Pin
Paul M Watt5-Jun-02 12:43
mentorPaul M Watt5-Jun-02 12:43 
GeneralIcons in Dialogs Pin
Dov Sherman5-Jun-02 8:35
Dov Sherman5-Jun-02 8:35 
GeneralRe: Icons in Dialogs Pin
Mike Nordell5-Jun-02 9:36
Mike Nordell5-Jun-02 9:36 
GeneralRe: Icons in Dialogs Pin
Ed Gadziemski5-Jun-02 12:33
professionalEd Gadziemski5-Jun-02 12:33 
GeneralMutex problem Pin
Hans Ruck5-Jun-02 8:14
Hans Ruck5-Jun-02 8:14 
GeneralRe: Mutex problem Pin
Mike Nordell5-Jun-02 9:40
Mike Nordell5-Jun-02 9:40 
GeneralRe: Mutex problem Pin
Hans Ruck5-Jun-02 21:07
Hans Ruck5-Jun-02 21:07 
GeneralRe: Mutex problem Pin
Mike Nordell6-Jun-02 9:57
Mike Nordell6-Jun-02 9:57 
GeneralRe: Mutex problem Pin
John M. Drescher6-Jun-02 10:06
John M. Drescher6-Jun-02 10:06 
GeneralRe: Mutex problem Pin
John M. Drescher6-Jun-02 10:11
John M. Drescher6-Jun-02 10:11 
Generalstring to wstring conversion Pin
5-Jun-02 7:41
suss5-Jun-02 7:41 
GeneralRe: string to wstring conversion Pin
Mike Nordell5-Jun-02 7:57
Mike Nordell5-Jun-02 7:57 

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.