Mena Sargios
Quiz von , erstellt am more than 1 year ago

Algorithms and Data Structures | Test 3 Review | CSCI-3110-002 MTSU

424
0
0
Mena Sargios
Erstellt von Mena Sargios vor mehr als 7 Jahre
Schließen

3. 2-3 Tree

Frage 1 von 19

1

What are the internal node stipulations in a 2-3 tree?

Wähle eine der folgenden:

  • The internal node must have one data item and two children or two data items and three children.

  • none of the above

Erklärung

Frage 2 von 19

1

An internal node in a 2-3 tree is said to be a _ node if it has
two data elements and ___ children.

Wähle eine der folgenden:

  • A) 2, 2

  • B) 3, 2

  • C) 3, 3

  • D) 2, 3

Erklärung

Frage 3 von 19

1

What makes a 2-3 tree seperate from a binary tree?

Wähle eine der folgenden:

  • Each node can have up to two elements and three children.

  • none of the above

Erklärung

Frage 4 von 19

1

all leaves in a 2-3 tree are at the same level?

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 5 von 19

1

What is the lookup time for 2-3 Tree?

Wähle eine der folgenden:

  • A.nlogn

  • B.log M(where m is the numbr of keys)

  • C.n

  • D.None of the above

Erklärung

Frage 6 von 19

1

What time for searching does a 2-3 tree gurantee?

Wähle eine der folgenden:

  • O(log n)

  • O(n^2)

Erklärung

Frage 7 von 19

1

The worst possible case for the binary tree is that all of the data is entered in order.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 8 von 19

1

In a 2-3 tree a node that has two values must be?

Wähle eine der folgenden:

  • A. only a leaf node

  • B. only a node with 3 children

  • C. either a leaf node or a node with 3 children

Erklärung

Frage 9 von 19

1

Which of the following is false about 2-3 trees?

Wähle eine der folgenden:

  • a. Every internal node is a 2-node or a 3-node.

  • b. Leaves are not at the same level.

  • c. All data is kept in sorted order.

  • d. None of the above

Erklärung

Frage 10 von 19

1

What is the maximum number of children a 2-3 tree can have?

Wähle eine der folgenden:

  • A) 3

  • B) 2

  • C) 6

  • D) There is no limit

Erklärung

Frage 11 von 19

1

In 2-3 tree, every node with children has ____ and ____.

Wähle eine der folgenden:

  • a. 2 children and 1 data element; 3 children and 2 data elements

  • b. Only 2 children and 1 data element

  • c. Only 3 data elements and 2 children

  • d. 3 children and 1 or 2 data elements

Erklärung

Frage 12 von 19

1

A 2-3 tree can have:

Wähle eine der folgenden:

  • A. Two children and one data element

  • B. Three children and two data elements

  • C. One child and one data element

  • D. A and B

Erklärung

Frage 13 von 19

1

What is a 2-3 tree?

Wähle eine der folgenden:

  • A) A tree with only 2/3 available

  • B) A tree where every child has either two children or three children

  • C) A tree with height only 2 or 3

  • D) None of the above

Erklärung

Frage 14 von 19

1

When inserting into a non-root node which has 2 keys already in a 2-3 tree, which of the following will happen first?

Wähle eine der folgenden:

  • A. nothing; 2-3 trees can hold 3 keys per node

  • B. the smallest value gets pushed up to the parent

  • C. the middle value gets pushed up to the parent

  • D. the largest value gets pushed up to the parent

Erklärung

Frage 15 von 19

1

A 2-3 Tree is a specific form of a B tree. A 2-3 tree is a:

Wähle eine der folgenden:

  • A. value tree

  • B. search tree

  • C. node tree

  • D. left tree

Erklärung

Frage 16 von 19

1

When talking about a 2-3 tree the right, center, left subtree contains the same or close to same amount of data. If this is true what is this tree considered to be?

Wähle eine der folgenden:

  • A) close

  • B) balanced

  • C) un-balanced

  • D) The first statement is no true

Erklärung

Frage 17 von 19

1

Which is not correct the following properties of 2-3 tree?

Wähle eine der folgenden:

  • a. Every internal node is a 2-node or a 3-node.

  • b. All leaves are at the same level.

  • c. All data is kept in sorted order.

  • d. All leaves are at the different level.

Erklärung

Frage 18 von 19

1

which one is not right about the 2_3 tree?

Wähle eine der folgenden:

  • A. A 2_3 tree is a binary search tree.

  • B. In the average case, the time complexity of searching one member of the 2_3 tree is O(logn).

  • C. In the average case, the time complexity of inserting one member into the 2_3 tree is O(logn).

  • D. a B-tree of order 3 is a 2-3 tree.

Erklärung

Frage 19 von 19

1

What is the worst case time complexity of delete in a 2-3 tree? (In big O notation)

Wähle eine der folgenden:

  • A) O(log(2N))

  • B) O(N)

  • C) O(log(N))

  • D) O(e^(N+1))

Erklärung