Live Quiz Arena
🎁 1 Free Round Daily
⚡ Enter ArenaQuestion
← Logic & PuzzlesWhat happens to the memory usage when a context-free grammar, expressed in Backus-Naur Form, is parsed using the CYK algorithm?
A)Constant, grammar size independent
B)Grows cubically with input size✓
C)Grows linearly with grammar size
D)Logarithmic relative to input size
💡 Explanation
The CYK algorithm uses dynamic programming, requiring a table proportional to the cube of the input string length because it considers all possible substrings. Therefore, memory usage grows cubically, rather than linearly or logarithmically, and is related to the input, not grammar, size.
🏆 Up to £1,000 monthly prize pool
Ready for the live challenge? Join the next global round now.
*Terms apply. Skill-based competition.
Related Questions
Browse Logic & Puzzles →- If an online retailer uses linear programming to optimize warehouse packing for minimizing shipping costs given box size constraints, which consequence follows from incorrectly specifying the objective function?
- Within the context of RSA cryptography, which outcome arises when assuming a number, 'n', can be factored efficiently despite its selection following established prime number generation protocols?
- If a data custodian desires to prove data possession without revealing the dataset, which cryptographic mechanism facilitates this?
- A digital filter's stability is determined by its eigenvalues; which outcome occurs when any eigenvalue's magnitude exceeds one?
- If an engineer uses dynamic programming to solve the all-pairs shortest path problem in a directed graph with 500 nodes, what limits its scaling to larger graphs?
- Which outcome occurs when a computer science student attempts to solve an optimization problem using the wrong algorithm design paradigm?
