----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: bignbullish Message 10 in Discussion hi, while i was trying out the example, i found that the major part of the time was consumed by the MSWord automation. The time to search was a fraction of this. And you also said that there are some database operations to be done. If you combine all three steps to measure the speed of your tool, then it'll be unfair to blame the search part for the lack of speed. Try to do these steps independent of each other and you'll get a fair idea of which step is taking the longest time to complete. But trying to improve your serach technique is always good. Try building a decision tree out of the words to be searched. The decision criterion can be the characters the word starts with (Hashtable is again similar in some sense ... the decision is based on the hashcodes). There is a fast pattern matching algorithm by the name RETE by Charles L Forgy. This algorithm owes its speed to the memories it retains at evey node in the tree about searches that had succeeded previously. So, when a new search is started, you first look at the memories to see if a similar match had taken place before. If yes, then the search starts from that piont on, thus making it faster. - Raghu (bignbullish) ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
