
Tree & Graph problems
Presentation
•
Computers
•
Professional Development
•
Hard
PRADHEEBA U
Used 8+ times
FREE Resource
20 Slides • 5 Questions
1
Tree & Graph problems
From Data Structures
2
Multiple Choice
Find the post-order Traversal
a) 6, 2, 5, 7, 11, 2, 5, 9, 4
b) 6, 5, 2, 11, 7, 4, 9, 5, 2
c) 2, 7, 2, 6, 5, 11, 5, 9, 4
d) 2, 7, 6, 5, 11, 2, 9, 5, 4
3
Multiple Choice
Find the left order traversal
a) 2, 7, 2, 6, 5, 11, 5, 9, 4
b) 2, 7, 5, 2, 11, 9, 6, 5, 4
c) 2, 5, 11, 6, 7, 4, 9, 5, 2
d) 2, 7, 5, 6, 11, 2, 5, 4, 9
4
Multiple Choice
For a particular tree, the in-order traversal is 6,2,8,7,11,2,5,9,4 and pre-order traversal is 2,7,2,6,8,11,5,9,4. Find the right child of the root.
5
7
2
8
5
BST
Insertion and Deletion
6
Insertion
10
20
30
5
2
1
6
4
7
Lets see how the values get inserted
https://visualgo.net/en/bst
8
Adelson, Velski & Landis Tree
Insertion and Deletion
9
Insertion
10
20
30
40
50
5
4
2
1
10
B- Tree
Insertion and Deletion
11
Insertion with Max Deg 4
10
20
30
40
50
60
15
35
38
39
52
12
Let's see the insertion...
https://www.cs.usfca.edu/~galles/visualization/BTree.html
13
Graph
Traversal Topologoical Sort
14
BFS & DFS
Along with topological sort
15
Lets see the solution..
https://visualgo.net/en/dfsbfs
16
Heap Tree
Min and Max
17
Insert and Extract in Heap
10
20
30
45
48
19
25
35
27
18
How to insert ? how extraction done?
https://visualgo.net/en/heap
19
Lets check the understandability of DS
There are 7 systems (0,..,6) connected as given in the figure.What is the minimum number of connections to be added to the network so that when a system goes down, the rest of the network is still connected ?
20
How many Articulation points are available in this graph? How?
0
12
3
21
Multiple Choice
The leaf of an expand is never an articulate point
True
False
Cannot be Determined
22
Multiple Choice
Correct choice of data structures can improve the performance of algorithms. Match the following algorithms with appropriate data structures,
i. Breadth first search
ii. Depth first search
iii. Sorting
a. Heap
b. Stack
c. Queue
A. ia iib iiic
B. ib iia iiic
C. ic iib iiia
D. ib iic iiia
23
Which of the following the graph posses? How?
a) Euler Circuit
b) Euler Path
24
Quickly decide if its eulerian.
Give Reasons
25
Find if it has Euler Path or not
If it has, how many edges are required to be added, to make this an euler circuit?
Tree & Graph problems
From Data Structures
Show answer
Auto Play
Slide 1 / 25
SLIDE
Similar Resources on Wayground
17 questions
Pengantar KA satuan PAUD
Presentation
•
Professional Development
20 questions
พุทธศาสนา 1
Presentation
•
KG - University
21 questions
NOBLE
Presentation
•
KG - University
16 questions
Gestión Educativa y Liderazgo Escolar
Presentation
•
Professional Development
20 questions
fast food
Presentation
•
KG
21 questions
Addition and Subtraction
Presentation
•
KG
17 questions
some/any/a lot of/much/many
Presentation
•
Professional Development
18 questions
LOS CONTINENTES Y OCEANOS
Presentation
•
Professional Development
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade