Recent questions tagged data-structures

2 votes
1 answer
1501
The time required to search an element in a linked list of length n is$O(\log_2 n)$$O(n)$$O(1)$$O(n^2)$
1 votes
1 answer
1503
0 votes
2 answers
1507
Post order traversal of a BST is 35,50,55,60,50,100.then what can you say about the tree?(A) Min heap(B) Max heap(C) Strict binary tree(D) None of these
1 votes
1 answer
1510
1 votes
2 answers
1513
Which of the following data structures will be the most efficient for inserting a number into a sorted list of numbers?QueueStackLinked listArray
0 votes
1 answer
1514
Consider an array size of 10 and insertion of 10 element in it.If first five element are inserted at loc =0 and rest five element are at loc=2then the total number of shi...
0 votes
1 answer
1515
Which of the following data structure will be most efficient for inserting a number into a sorted list of numbers ?StackQueueLinked ListArray
0 votes
1 answer
1517
$6.2-3$What is the effect of calling MAX-HEAPIFY(A,i) when the element A[i] is larger that its children?
0 votes
1 answer
1518
1 votes
1 answer
1519
10 votes
2 answers
1520
The number of rotations required to insert a sequence of elements $9, 6, 5, 8, 7, 10$ into an empty $AVL$ tree is?$0$$1$$2$$3$
1 votes
4 answers
1523
The tree given is as follows: 40 / \ 35 53 / \ 20 60 How many rotations are required for insertion of elements 30,55,45,6...
73 votes
10 answers
1524
31 votes
2 answers
1526
20 votes
3 answers
1527
Consider the binary tree in the figure below:Give different steps for deleting the node with key $5$ so that the structure is preserved.
0 votes
3 answers
1528
0 votes
1 answer
1530
How many real links are required to store a sparse matrix of 10 rows , 10 columns ,and 15 non zeros entries.(pick up the closest answer)