
Chomsky normal form
Chomsky Normal Form (CNF) is a way to represent context-free grammars in a structured manner. In CNF, each rule in the grammar must fit one of two patterns: it can either produce two variables (non-terminal symbols) or a single terminal symbol (a basic unit like a word). This form simplifies parsing algorithms and helps in computer science, particularly in designing compilers and processing languages. By organizing grammar rules in this way, it becomes easier to analyze and manipulate languages systematically.