0 0 votes What is the space complexity of the CYK algorithm for the $\mathrm{P}$ table, where $\mathrm{n}$ is the number of words in the sentence and $\mathrm{m}$ is the number of non terminal symbols in the grammar?$\mathrm{O}\left(\mathrm{n}^{3}\right)$$\mathrm{O}\left(\mathrm{nm}^{2}\right)$$\mathrm{O}\left(n^{2} m\right)$$\mathrm{O}\left(\mathrm{n}^{2} \mathrm{~m}^{2}\right)$ Theory of Computation ugcnetcse-dec2025 space-complexity parsing context-free-grammar algorithm-design + – Shubham Sharma 2 96 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Option C Space Complexity: O(n^2m) Time complexity : O(n^3m^3) Keshvi 2 answered May 19 Keshvi 2 comment Share Follow 0 reply Please log in or register to add a comment.