A tutorial on adding Memoization, Smart Constructors, Simplification Rules and Extra Operators to the Derivatives for Regular Expression algorithm — In the previous post, we explained what a derivative of a regular expression is, using Pac-Man. In this post, we are going to use Ragas from Indian classic music as an example, to explain how to extend derivatives: with new operators, with simplification rules, smart constructors and memoization as an…