Talk:Boyer-Moore string search: Difference between revisions

From Rosetta Code
Content added Content deleted
m (update historical comment to link to historical view of what was being commented on)
Line 11: Line 11:
;;(print (bm_compile_pattern "abcdb"))
;;(print (bm_compile_pattern "abcdb"))
and replit just seems to run an editor... Then again I've never used Emacs, so what do I know? --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 15:55, 9 July 2022 (UTC)
and replit just seems to run an editor... Then again I've never used Emacs, so what do I know? --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 15:55, 9 July 2022 (UTC)

: https://www.gnu.org/software/emacs/manual/html_node/efaq/Evaluating-Emacs-Lisp-code.html explains how to run emacs lisp code. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 15:28, 17 July 2022 (UTC)

Revision as of 15:29, 17 July 2022

I am not sure if this is intended to be a task.

I also am not sure how this algorithm's performance fairs against the caching mechanisms of recent machines. (Other than branch prediction issues, boyer-moore is probably not penalized by caching implementations -- unlike tree search algorithms which experience poor cache locality -- but there might be some minimum search string length necessary to see significant gains from this approach, especially in uncached contexts.) --Rdm (talk) 01:13, 6 July 2022 (UTC)


For strings I do not know, but variants of this algorithm are commonly used to search DNA databases. See for example this paper: http://www.ijsetr.com/uploads/625413IJSETR2868-162.pdf --Wherrera (talk) 03:03, 6 July 2022 (UTC)

Emacs Lisp incorrect?

No output for one and no indication of how it might be used for two. It certainly doesn't run on TIO with the message

Trailing garbage following expression: 
;;(print (bm_compile_pattern "abcdb"))

and replit just seems to run an editor... Then again I've never used Emacs, so what do I know? --Pete Lomax (talk) 15:55, 9 July 2022 (UTC)

https://www.gnu.org/software/emacs/manual/html_node/efaq/Evaluating-Emacs-Lisp-code.html explains how to run emacs lisp code. --Rdm (talk) 15:28, 17 July 2022 (UTC)