473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

AhoCorasick

I know AC can be used to find all occurrences of a pattern in a given
text, but i don:t understand how it actually work. can u tell me about
if any other algorithms that can do the same job but are easier to
figureout what exactly they are doing than AC? thanx,

--Potatoman

Jul 12 '06 #1
3 2856
"Potatoman" <gu*************@yahoo.comwrites:
I know AC can be used to find all occurrences of a pattern in a given
text, but i don:t understand how it actually work. can u tell me about
if any other algorithms that can do the same job but are easier to
figureout what exactly they are doing than AC? thanx,
You posted this same article 3 times.

I was about to say that I don't know what "AC" is, until I realized
that it's in the subject header ("AhoCorasick"). Not all newsreaders
necessarily show the subject header along with the body of the
article.

Your question is about algorithms; it really has nothing to do with
the C programming language, which is what we discuss here. (If you
had questions about a C implementation of the Aho Corasick algorithm,
this would be the place to ask.)

A Google search for "Aho Corasick" turns up a number of hits. If that
doesn't answer your question, you might try comp.programming.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 12 '06 #2
yeah, but i c-programmed to recode the program and things doesn't work
fine because the program is too mixed of c and c++. i will read some
books again and see if it'll get better then.
Anyone knows other algorithms that u have coded, plz give me the source
or tells me the name so i can search. by the way thanks a lot in
advance

Keith Thompson のメッセージ:
"Potatoman" <gu*************@yahoo.comwrites:
I know AC can be used to find all occurrences of a pattern in a given
text, but i don:t understand how it actually work. can u tell me about
if any other algorithms that can do the same job but are easier to
figureout what exactly they are doing than AC? thanx,

You posted this same article 3 times.

I was about to say that I don't know what "AC" is, until I realized
that it's in the subject header ("AhoCorasick"). Not all newsreaders
necessarily show the subject header along with the body of the
article.

Your question is about algorithms; it really has nothing to do with
the C programming language, which is what we discuss here. (If you
had questions about a C implementation of the Aho Corasick algorithm,
this would be the place to ask.)

A Google search for "Aho Corasick" turns up a number of hits. If that
doesn't answer your question, you might try comp.programming.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 12 '06 #3
"Potatoman" <gu*************@yahoo.comwrites:
yeah, but i c-programmed to recode the program and things doesn't work
fine because the program is too mixed of c and c++. i will read some
books again and see if it'll get better then.
Anyone knows other algorithms that u have coded, plz give me the source
or tells me the name so i can search. by the way thanks a lot in
advance
Once again, this is the wrong place to ask.

And please read <http://www.caliburn.nl/topposting.html>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Andr Sreng | last post by:
Hi! Given a string, I want to find all ocurrences of certain predefined words in that string. Problem is, the list of words that should be detected can be in the order of thousands. With the...
1
by: Daniel Yoo | last post by:
Does anyone know why PyPI's doesn't like my PKG-INFO file? Here's what I have: ###### mumak:~/work/aho/src/python/dist/ahocorasick-0.8 dyoo$ cat PKG-INFO Metadata-Version: 1.0 Name:...
6
by: Maurice LING | last post by:
Hi, I have the following codes: from __future__ import nested_scopes import re from UserDict import UserDict class Replacer(UserDict):
4
by: Travers Naran | last post by:
Here's the basic idea. I have a dictionary of substrings (the substrings stored as keys). I have a list of strings. I want to find out, for each word in the dictionary, how many times the...
19
by: rbt | last post by:
Here's the scenario: You have many hundred gigabytes of data... possible even a terabyte or two. Within this data, you have private, sensitive information (US social security numbers) about your...
3
by: Will McGugan | last post by:
Hi, Is there a simple way of replacing a large number of substrings in a string? I was hoping that str.replace could take a dictionary and use it to replace the occurrences of the keys with the...
5
by: John | last post by:
Hi, I was asked to create a function to detect cursed words in user's input and reject user's input if found, does anybody know existing codes I can use? TIA
1
by: Potatoman | last post by:
I know AC can be used to find all occurrences of a pattern in a given text, but i don:t understand how it actually works. can u tell me about if any other algorithms that can do the same job but...
17
by: garrickp | last post by:
While creating a log parser for fairly large logs, we have run into an issue where the time to process was relatively unacceptable (upwards of 5 minutes for 1-2 million lines of logs). In contrast,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.