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 →- An automated greenhouse climate control system uses temporal logic to maintain optimal conditions. If the 'humidity too low' signal persists, which outcome occurs relating to a critical process?
- If an automated pizza-ordering system uses linear programming to minimize cost, which consequence follows when a constraint equation limiting available pepperoni is removed?
- If a lossy data compression algorithm uses a mapping with a contraction factor of 0.5 on pixel color values, which consequence follows for successive iterations?
- If a CNF formula, representing constraints in a software configuration, contains a clause (A ∨ ¬A ∨ B), which simplification is directly applicable?
- If a self-regulating HVAC system in a museum uses temporal logic to maintain stable humidity, which consequence follows when a specification requires humidity to be *always* within bounds?
- In a two-player game represented by a payoff matrix, which condition ensures the existence of a Nash equilibrium in pure strategies?
