UGC NET Paper 2 (Computer Science)Hard
The number of distinct binary search trees on keys 1 to 4 is:
- A. 14
- B. 24
- C. 10
- D. 12
Correct answer: A. 14
Catalan C4 = 14; 24 is the number of permutations, many of which give the same tree.
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
- Strassen's matrix multiplication has time complexity approximately:
- The language {a^n b^n | n >= 0} is:
- A graph has 13 vertices, 17 edges and is connected. Its cyclomatic number (number of independent cycles) is:
- The Floyd cycle-detection (tortoise and hare) method finds a cycle in a linked list using:
- For the reference string 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1 and 3 frames, the number of page faults under LRU is:
- A TLB lookup takes 20 ns, a memory access 100 ns and the TLB hit ratio is 90%. The effective access time (single-level paging) is: