questions for discussion Cs iiitdm kancheepuram

yadidhyadevathotijay 9 views 15 slides May 08, 2024
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Engineering mechanics


Slide Content

What is the worst-case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order? More than one answer may be correct.

Θ( n 2 )

What is the worst-case time complexity of inserting n 2 elements into an AVL tree with n elements initially?

Θ( n 2 log n)

The result evaluating the postfix expression 10 5 + 60 6/ * 8 –

The postorder traversal of a binary tree is 8,9,6,7,4,5,2,3,1 . The inorder traversal of the same tree is 8,6,9,4,7,2,5,1,3 . The height of a tree is the length of the longest path from the root to any leaf. Then the height of the binary tree is ________

An array [ 82,101,90, 11,111,75,33, 131,44,93] is heapified . What are the first three elements in the heapified array?

​​​​​Let H be a binary min-heap consisting of n elements implemented as an array. What is the worst case time complexity of an optimal algorithm to find the maximum element in H?

Θ( n)

Given a binary-max heap. The elements are stored in an arrays as 25, 14, 16, 13, 10, 8, 12. What is the content of the array after two delete operations?

A queue is implemented using array, What is the time complexity of enqueue and dequeue operation ?

Θ( 1)

The queue data structure is to be realized using stack. The number of stacks required is

While inserting the elements 71, 65, 84, 69,67, 83 in an empty binary search tree (BST) in the sequence shown, the element in the lowest level is