Professional KnowledgeVery hardIBPS SO
How many structurally distinct binary search trees can be built from the keys 1, 2, 3, 4, 5?
- A. 32
- B. 42
- C. 52
- D. 64
Correct answer: B. 42
The count is the 5th Catalan number, C5 = 42; it is not 2^5.
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- Three processes each need at most 2 instances of the same resource type. The minimum number of instances that guarantees the system is…
- R(A,B,C,D,E) with AB->C, C->D, D->E has candidate key(s):
- R(A,B,C) with FDs AB->C and C->B. Decompose into R1(A,C), R2(B,C). Which is true?
- R(A,B,C,D) has candidate keys AB and CD only. Number of superkeys?
- Which statement about BCNF decomposition is true?
- Let R have 6 tuples and S have 4 tuples. The cardinality of R LEFT OUTER JOIN S (on an attribute) is at least: