Home / MCQ Bank / Computer
Computer Applications Of Data Structures

What data structure is commonly used for implementing an auto-complete feature in search engines?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • Trie

Related Computer Questions

PigUnit runs in Pig's ______ mode by default. To perform consistency checks on a MyISAM table the statement is ______ Which of the following lines should be inserted to complete the following recursive implementation used to find the length of a linked list? #include<stdio.h> #include<stdlib.h> struct Node { int val; struct Node *next; }*head; int recursive_get_len(struct Node *current_node) { if(current_node == 0) return 0; return _____; } int main() { int arr[10] = {1,2,3,4,5}, n = 5, i; struct Node *temp, *newNode; head = (struct Node*)malloc(sizeof(struct Node)); head->next = 0; temp = head; for(i=0; i<n; i++) { newNode = (struct Node*)malloc(sizeof(struct Node)); newNode->val = arr[i]; newNode->next = 0; temp->next = newNode; temp = temp->next; } int len = recursive_get_len(head->next); printf("%d",len); return 0; } What is the shortcut-key for manual line break in Ms Word? Consider the following iterative implementation to find the factorial of a number. Which of the lines should be inserted to complete the below code? int main() { int n = 6, i; int fact = 1; for(i=1;i<=n;i++) _________; printf("%d",fact); return 0; }