UGC NET Paper 2 (Computer Science)Hard
Matrices A (10x20), B (20x30), C (30x40) are to be multiplied. The minimum number of scalar multiplications is:
- A. 32000
- B. 24000
- C. 18000
- D. 12000
Correct answer: C. 18000
(AB)C costs 6000 + 12000 = 18000, A(BC) costs 24000 + 8000 = 32000.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- For symbol frequencies 5, 9, 12, 13, 16, 45 a Huffman code has a total weighted path length (encoded bits) of:
- A full binary tree (each node has 0 or 2 children) has 25 leaves. The total number of nodes is:
- The maximum number of edges in a simple planar graph with 10 vertices is:
- The number of generators of the cyclic group Z12 is:
- The minimum number of states of a DFA over {a, b} accepting strings with the number of a's divisible by 3 and the number of b's divisible…
- Assertion (A): Whether a given Turing machine accepts at least one string is undecidable. Reason (R): By Rice's theorem every non-trivial…