Exam 9: Searching and Sorting

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

A balanced N-ary tree with n elements will have height ______.

(Short Answer)
4.8/5
(33)

What are the advantages and disadvantages of the simulated link strategy?

(Essay)
4.8/5
(28)

In general, a balanced n-ary tree with m elements will have height _______.

(Multiple Choice)
4.9/5
(46)

___________ traversal means visit the nodes at each level, one level at at time, starting with the root.

(Multiple Choice)
4.8/5
(43)

  -In the computational strategy to implement a tree with an array, the children of node n are stored at _____. -In the computational strategy to implement a tree with an array, the children of node n are stored at _____.

(Short Answer)
4.8/5
(41)

  -For the tree shown above, list the root. -For the tree shown above, list the root.

(Short Answer)
4.7/5
(37)

What is the root of the tree?

(Short Answer)
4.9/5
(34)

________ traversal means visit the left child, then the right child, then the node.

(Multiple Choice)
4.8/5
(38)

  -Preorder traversal means ______. -Preorder traversal means ______.

(Short Answer)
4.9/5
(46)

  -For the binary tree shown, list the elements in the order generated by an InOrder traversal. -For the binary tree shown, list the elements in the order generated by an InOrder traversal.

(Short Answer)
4.9/5
(45)

  -What is the height of the tree shown above? -What is the height of the tree shown above?

(Short Answer)
5.0/5
(39)

  -For the binary tree shown, list the elements in the order generated by an PreOrder traversal. -For the binary tree shown, list the elements in the order generated by an PreOrder traversal.

(Short Answer)
4.9/5
(39)

Which method of traversing a tree would result in a sorted list for a binary search tree?

(Essay)
4.9/5
(43)

What is a leaf?

(Short Answer)
4.9/5
(33)
Showing 41 - 54 of 54
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)