Suitable searching techniques for my parser...

J

jatin.libra

helloo
iam working on a parser wherein i search for a few strings in
thousands of lines...
ie i have an open fifo from which i keep receiving lines and lines of
data and iam supposed to search for a few strings(around 50 strings)
in every line.
just wanted to take ur opinion which sorting technique should i use...
or if u guys have any examples that would be an extra help...
 
C

Chris McDonald

helloo
iam working on a parser wherein i search for a few strings in
thousands of lines...
ie i have an open fifo from which i keep receiving lines and lines of
data and iam supposed to search for a few strings(around 50 strings)
in every line.
just wanted to take ur opinion which sorting technique should i use...
or if u guys have any examples that would be an extra help...


Before many mention that this has nothing to do with C and this newsgroup,
specifically, it's unclear why you've even mentioned a sorting technique.
 
A

anu

Chris McDonald said:
Before many mention that this has nothing to do with C and this newsgroup,
specifically, it's unclear why you've even mentioned a sorting technique.

thats cause iam trying to implement it using C dude.
as of now iam trying to use Binary search but i just wanted to know if
there are any faster search algorithms
 
C

CBFalconer

anu said:
thats cause iam trying to implement it using C dude.
as of now iam trying to use Binary search but i just wanted to
know if there are any faster search algorithms

You aren't making points here. First you post off-topic, after
failing to find out what the subject of the newsgroup is. You use
foolish abbreviations, in order to annoy further. Then you argue
about what the group discusses. You also start multiple threads
with the same query.
 
S

sathyashrayan

CBFalconer said:
You aren't making points here. First you post off-topic, after
failing to find out what the subject of the newsgroup is. You use
foolish abbreviations, in order to annoy further. Then you argue
about what the group discusses. You also start multiple threads
with the same query.

With two different names.
 
S

sathyashrayan

anu said:
Chris McDonald <[email protected]> wrote in message technique.

thats cause iam trying to implement it using C dude.
as of now iam trying to use Binary search but i just wanted to know if
there are any faster search algorithms

search for Boyer-Moore algorithm in google.

--
"combination is the heart of chess"

A.Alekhine

Mail to:
sathyashrayan AT gmail DOT com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top