
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A quiz on data structures and algorithms for a university course cs2402. The quiz includes multiple choice questions on topics such as binary trees, avl trees, and traversal algorithms. Students are required to justify their answers and may lose points for presentation, readability, and completeness. The quiz covers topics like binary search trees, avl trees, and traversal algorithms.
Typology: Quizzes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Data Stru tures and Algorithms CS
Quiz 5
14 p oints - 20 minutes
Make sure that you justify all your answers. Up to 2 p oints may b e taken o if the larity of presentation, readability, and ompleteness explanations is an issue.
Exer ise 1 ( 2 p oints) What is a binary sear h tree?
Exer ise 2 ( 2 p oints) What is an AVL tree?
Exer ise 3 ( 4 p oints) Given the fol lowing sequen e of numbers: 10, 1, 20, 25, 7, 3, 15, build the orresponding binary sear h tree.
Exer ise 4 ( 2 p oints) Give the pseudo- ode of the re ursive algorithm for the post- order traversal of a binary tree.
Exer ise 5 ( 4 p oints) Give the pseudo- ode of the in-order traversal of a binary tree, using a sta k.