Exam 9: Searching and Sorting

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The simulated link strategy does not allow array positions to be allocated contiguously regardless of the completeness of the tree.

(True/False)
4.8/5
(37)

The simulated link strategy allows array positions to be allocated contiguously regardless of the _________ of the tree.

(Multiple Choice)
4.9/5
(39)

What are the advantages and disadvantages of the computational strategy?

(Essay)
4.7/5
(34)

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

(True/False)
4.7/5
(35)

In the computational strategy to implement a tree with an array, the children of node n are stored at 2n + 1 and 2(n + 1) respectively.

(Multiple Choice)
4.9/5
(37)

A collection where each node can have from 0 to 2 children is called a ___________.

(Multiple Choice)
4.8/5
(43)

  -A ______ is a nonlinear structure whose elements are organized into a hierarchy. -A ______ is a nonlinear structure whose elements are organized into a hierarchy.

(Short Answer)
4.8/5
(31)

  -There are four basic methods for traversing a tree: ______. -There are four basic methods for traversing a tree: ______.

(Short Answer)
4.9/5
(43)

A collection where each node can have from 0 to 3 children is called a Binary Tree.

(True/False)
5.0/5
(43)

  -The ______ strategy allows array positions to be allocated contiguously regardless of the completeness of the tree. -The ______ strategy allows array positions to be allocated contiguously regardless of the completeness of the tree.

(Short Answer)
4.8/5
(37)

The binary tree shown above is balanced.

(True/False)
4.8/5
(39)

Define the height of a tree.

(Short Answer)
4.9/5
(48)

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

(True/False)
4.9/5
(33)

Level-order traversal means visit the nodes at each level, one level at at time, starting with the root.

(True/False)
4.8/5
(34)

A node that does not have a ______ is called the root of a tree.

(Short Answer)
4.8/5
(37)

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

(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 2n + 1 and 2(n + 1) respectively.

(True/False)
4.8/5
(27)

Define the level of a node.

(Short Answer)
4.9/5
(40)

A node that has both a parent and at least one child is called a(n) ______ node.

(Short Answer)
4.9/5
(37)

A tree is a nonlinear structure whose elements are organized into a __________.

(Multiple Choice)
4.8/5
(41)
Showing 21 - 40 of 54
close modal

Filters

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