Data Structures and Algorithms
Description: test your DS and C knowledge | |
Number of Questions: 15 | |
Created by: Vaibhav Pathak | |
Tags: data structures Data Structure Algorithm Arrays and Pointers |
Which of the following data structures is used to implement predictive text or auto complete dictionary, such as found on a mobile telephone?
Which of the following is a characteristic of bloom filter?
Which of the following statements are true?
- Linked list has more storage over head than array, considering both are of same size.
- Linked list's size is fixed whereas array's size can be varied dynamically.
- The list elements cannot be inserted or removed from the linked list.
Which of the following statements is/are true?
- The time complexity for searching an element in binary search tree is O(log n).
- The time complexity for searching an element in binary tree is O(n).
- The time complexity for searching an element in binary tree and binary search tree cannot be determined.
Given four algorithms A, B, C, D with time complexities as follows: A-O(n) B-O(log log n) C-O(log n) D-O(1) where n > 1 Select the option, which gives the algorithms in increasing order of their time complexities.
Which of the following searching methods takes a time complexity of O(1) to search an element?
Inorder traversal of Binary Search Tree gives which of the following?
A tree data structure has 100 nodes. What is the number of nodes in this tree having no ancestor?
Last in first out property is associated with which of the following data structures?
Which of the following statements is/are true?
- Quick sort algorithm and bubble sort algorithm takes O(n2) in worst case.
- Quick sort and merge sort takes O(n2) in worst case.
In which of the following applications is a tree data structure best used?
Which of the following statements is/are true? Statement 1: Data structures are solely used for visualizing the data Statement 2: Data strcuture is programming language dependent
Which of the following data structures can be described as a connected graph with no cycles?
Which of the following data structures supports insertion or deletion of elements either from the front (head) or back (tail)?
Which of the following is a lossless data compression algorithm?