Contents
- 1 Which data structure is best for huge data?
- 2 Which data structure is used to store a large sequence of values?
- 3 Which data structure will you use to store a paragraph?
- 4 Which of the following data structure is better for storing the sorted data on which often?
- 5 What’s the best way to store large amounts of data?
- 6 What kind of data structure is a B-tree?
Which data structure is best for huge data?
Which among the following data structures is best suited for storing very large numbers (numbers that cannot be stored in long long int). Following are the operations needed for these large numbers. Explanation: The only two choices that make sense are Array and Linked List.
Which data structure is used to store a large sequence of values?
A linked list is a sequential structure that consists of a sequence of items in linear order which are linked to each other. Hence, you have to access data sequentially and random access is not possible. Linked lists provide a simple and flexible representation of dynamic sets.
Which data structure will you use for storing huge data and why?
To store huge data donot use arrays where implementation is easy but insertion and deletion is very difficult. Hence use dynamic like linked list where insertion and deletion is easy. Implement your problem using linked list where the members of linked list are arrays of 100 characters size.
Which data structure will you use to store a paragraph?
1 Answer. I think what you are looking for is a Trie. A trie a tree whose nodes store unique combinations of letters (prefixes), and whose edges point to combinations of letters following those prefixes (suffixes).
Which of the following data structure is better for storing the sorted data on which often?
Explanation: The answer is d, i.e., Heap. All the data structures that are given in the above options can be used to implement a priority queue but the most efficient way of implementing a priority queue is heap data structure.
How to choose the best data structure for very large data stack?
I have x (millions) positive integers, where their values can be as big as allowed (+2,147,483,647). Assuming they are unique, what is the best way to store them for a lookup intensive program.
What’s the best way to store large amounts of data?
You can use a memory mapped files to manage large datasets with limited memory. However if your file sizes are going to be 4GB then going to 64 bit is recommended. The boost project has a good multi-platform memory mapping library that performs very close to what you are looking for.
What kind of data structure is a B-tree?
In computer science, a B-tree is a tree data structure that keeps data sorted and allows searches, sequential access, insertions, and deletions in logarithmic time. The B-tree is a generalization of a binary search tree in that a node can have more than two children.
When do you need a regular data structure?
Only if you need very high performance does it make sense to use the kind of hacks that Jochen has suggested. Otherwise a regular data structure will be sufficient (and a lot easier to maintain). Sometimes it is not worth it to spend a lot of time tweaking a data structure that nobody is able to maintain.