home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compression
- Path: sparky!uunet!think.com!ames!purdue!yuma!cutler
- From: cutler@CS.ColoState.EDU (dan cutler)
- Subject: Request for algorithm/idea
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Message-ID: <Nov09.043816.85973@yuma.ACNS.ColoState.EDU>
- Date: Mon, 09 Nov 1992 04:38:16 GMT
- Nntp-Posting-Host: mozart.cs.colostate.edu
- Organization: Colorado State University, Computer Science Department
- Lines: 36
-
- Howdy Netters!
-
- This request may seem to be misplaced however I am searching
- for an algorithm (or at least a good idea where to start) for
- a project that really has nothing to do with data compression
- but similiar concepts.
-
- I need a small procedure to QUICKLY scan a string for characters
- from a small set. At first I thought to use Boyer-Moore. But
- BM builds a table and works very well for large substrings with-
- in strings. I suppose I could just scan the string 1 char at a
- time and check the char_set to see if it is there but this seems
- slow.
-
- Perhaps I should state the problem in real terms:
-
- This procedure is a PostScript filter. My program prints entire
- volumes of data from databases. Every string that is sent to
- the printer, is placed in parenthesis (). ie (the quick brwon)
- Well, if a string looks like this (Have a nice (mediocre) day),
- I have to place the "(" and ")" as strings using this char "\"
- The new string would look like this:
- (Have a nice \(mediocre\) day) and so on.
-
- The reason I'm posting this question here is that several compres-
- sion programs have advanced parsing/searching routines that may
- have/use similiar concepts.
-
- Any ideas?
- advTHANKSance
- Dan Cutler
-
- cutler@cs.colostate.edu
-
- btw, Assembly for pc preferred but anything accepted.
-
-