LGIN2 will probably be implemented using python, idk yet. haha
To understand l-system inference better, I need to learn the implementation of the L-system Grammar Induction based on Number theory for 1 rule (LGIN1) method by Nakano and Yamada 2010 (kinda like a starting point).
Given an Axiom and the String Y, find the rule for the predecessor (non-constant, predecessor != successor).
- Get the
Y_A
andY_k
's. - Get
alpha of a
and the number of rewritingsn
. Since this is LGIN1, there should only be one non-constant inYChars
. - Update the alpha values, the number of occurences of the specific character in the
succ(A)
. - Get potential successors.
- Check each potential successors to find a solution.
- Make sure you have NodeJS installed.
- Go to the root directory and open it in terminal.
- Type
npm run start
, then enter.
Nakano, R., Yamada, N.: Number theory-based induction of deterministic context-
free L-system grammar. In: International Conference on Knowledge Discovery and
Information Retrieval, pp. 194–199. SCITEPRESS (2010)