Why didn't Richard obtain a patent for his "middle-out" algorithm to protect Pied Piper from IP theft? I invented a string searching algorithm. How do I go about ensuring it is named after me? Is it possible to patent / copyright it or something else? Can algorithms be protected?