What is a time complexity for inserting an alphabet in the tree using hash maps?
A. O (log n!)
B. O (n!)
C. O (n2 )
D. O (1)
Select an option to see the answer and solution.
What is the time complexity of Uttkonen's algorithm?
A. O (log n!)
B. O (n!)
C. O (n2 )
D. O (n log n)
Select an option to see the answer and solution.
Which tree allows fast implementation of a set of string operation?
A. Rope Tree
B. Tango Tree
C. Generalized Suffix Tree
D. Top Tree
Select an option to see the answer and solution.
What is a time complexity for finding the total length of all string on all edges of a tree?
A. Ɵ (n)
B. Ɵ (n!)
C. Ɵ (1)
D. O (n2 )
Select an option to see the answer and solution.
Who among the following algorithm is used in external memory and compression of the suffix tree?
A. Weiner's algorithm
B. Farach's algorithm
C. Ukkonen's algorithm
D. Alexander Morse
Select an option to see the answer and solution.
A B+ tree can contain a maximum of 7 pointers in a node. What is the minimum number of keys in leaves?
Select an option to see the answer and solution.
Which of the following special type of trie is used for fast searching of the full texts?
A. Ctrie
B. Hash tree
C. Suffix tree
D. T tree
Select an option to see the answer and solution.
For what size of nodes, the worst case of usage of space in suffix tree seen?
A. n Nodes
B. 2n Nodes
C. 2n nodes
D. n! nodes
Select an option to see the answer and solution.
Following code snippet is the function to insert a string in a trie. Find the missing line.
private void insert(String str)
{
TrieNode node = root;
for (int i = 0; i < length; i++)
{
int index = key.charAt(i) - 'a';
if (node.children[index] == null)
node.children[index] = new TrieNode();
________________________
}
node.isEndOfWord = true;
}A. node = node.children[index];
B. node = node.children[str.charAt(i + 1)];
C. node = node.children[index++];
D. node = node.children[index++];
Select an option to see the answer and solution.
Which of the following is false?
A. A B+ -tree grows downwards
B. A B+ -tree is balanced
C. In a B+ -tree, the sibling pointers allow sequential searching
D. B+ -tree is shallower than B-tree
Select an option to see the answer and solution.
What is a time complexity for finding the longest substring that is repeated in a string?
A. O (log n!)
B. Ɵ (n!)
C. O (n2 + n1)
D. Ɵ (n)
Select an option to see the answer and solution.
What is a time complexity for finding the longest substring that is common in string S1 and S2 (n1 and n2 are the string lengths of strings s1, s2 respectively)?
A. O (log n!)
B. Ɵ (n!)
C. O (n2 + n1)
D. Ɵ (n1 + n2)
Select an option to see the answer and solution.
What is a time complexity for finding the longest palindromic substring in a string by using the generalized suffix tree?
A. Linear Time
B. Exponential Time
C. Logarithmic Time
D. Cubic Time
Select an option to see the answer and solution.
What is the other name for Suffix Tree?
A. Array
B. Stack
C. Priority Queue
D. PAT Tree
Select an option to see the answer and solution.
AVL trees provide better insertion the 2-3 trees.
Select an option to see the answer and solution.
Which of the following is false?
A. Compared to B-tree, B+ -tree has larger fanout
B. Deletion in B-tree is more complicated than in B+ -tree
C. B+ -tree has greater depth than corresponding B-tree
D. Both B-tree and B+ -tree have same search and insertion efficiencies
Select an option to see the answer and solution.
Who proposed the concept of Suffix Tree?
A. Weiner
B. Samuel F. B. Morse
C. Friedrich Clemens Gerke
D. Alexander Morse
Select an option to see the answer and solution.
The height of 2-3 tree with n elements is . . . . . . . .
A. between (n/2) and (n/3)
B. (n/6)
C. between (n) and log2(n + 1)
D. between log3(n + 1) and log2(n + 1)
Select an option to see the answer and solution.
Who among the following provided the first online contribution of Suffix Tree?
A. Weiner
B. Samuel F. B. Morse
C. Ukkonen
D. Alexander Morse
Select an option to see the answer and solution.
Statement 1: When a node is split during insertion, the middle key is promoted to the parent as well as retained in right half-node.
Statement 2: When a key is deleted from the leaf, it is also deleted from the non-leaf nodes of the tree.
A. Statement 1 is true but statement 2 is false
B. Statement 2 is true but statement 1 is false
C. Both the statements are true
D. Both the statements are false
Select an option to see the answer and solution.