Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I. Circle the best answer to the following questions. Single answer multiple choice. (6 Marks) 1) If two vertices are connected by two or more

image text in transcribed
I. Circle the best answer to the following questions. Single answer multiple choice. (6 Marks) 1) If two vertices are connected by two or more edges, these edges are called a) loop b) parallel edge c) weighted edge d) directed edge 2) For an Integer object with value 20, what is its hashCode? a) 10 b) 20 c) 30 d) 40 3) Theof a node is the height of its right subtree minus the height of its left subtree. a) balance factor b) depth c) length d) degree Theis to visit the nodes level by level. First visit the root, then all children of the root from left to right, then grandchildren of the root from left to right, and so on. a) inorder traversal b) preorder traversal c) postorder traversal d) breadth-first traversal 5) 5. Theis to visit the left subtree of the current node first, then the current node itself,a finally the right subtree of the current node. a) inorder traversal b) preorder traversal c) postorder traversal d) breadth-first traversal 6) The of a node is the length of the path from the root to the node. a) length b) depth c) height d) degree

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions