Question 11. The number of steps taken for searching the value r in a binary tree with n nodes .. a) depends on z. b) depends on n. c) is O(logą n). d) is O(log, n). Question 12. The average-case performance when looking up a single search key ... a) is better with a Linked List than with a Hash Table. b) is better with a Hash Table than with an Array. c) is better with a Binary Search Tree than with a Hash Table. d) is the same with a Linked List, an Array, and a Hash Table. Question 13. Given 100 000 numbers, the minimum height of a binary search tree that can store all these m a) depends on the numbers. b) is larger than 20 levels. c) is smaller than 19 levels. d) can be calculated as log10(100000).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please solve this questions

Question 11. The number of steps taken for searching the value z in a binary tree with n nodes ...
a) depends on r.
b) depends on n.
c) is O(log, n).
d) is O(log, n).
Question 12. The average-case performance when looking up a single search key ...
a) is better with a Linked List than with a Hash Table.
b) is better with a Hash Table than with an Array.
c) is better with a Binary Search Tree than with a Hash Table.
d) is the same with a Linked List, an Array, and a Hash Table.
Question 13. Given 100000 numbers, the minimum height of a binary search tree that can store all these number
a) depends on the numbers.
b) is larger than 20 levels.
c) is smaller than 19 levels.
d) can be calculated as log10(100000).
Question 14. Which of the following statements are correct for a max-heap?
a) The root always contains the largest key.
b) All keys in the left subtree are always smaller than any key in the corresponding right subtree.
c) All leaves are located on the same level.
Transcribed Image Text:Question 11. The number of steps taken for searching the value z in a binary tree with n nodes ... a) depends on r. b) depends on n. c) is O(log, n). d) is O(log, n). Question 12. The average-case performance when looking up a single search key ... a) is better with a Linked List than with a Hash Table. b) is better with a Hash Table than with an Array. c) is better with a Binary Search Tree than with a Hash Table. d) is the same with a Linked List, an Array, and a Hash Table. Question 13. Given 100000 numbers, the minimum height of a binary search tree that can store all these number a) depends on the numbers. b) is larger than 20 levels. c) is smaller than 19 levels. d) can be calculated as log10(100000). Question 14. Which of the following statements are correct for a max-heap? a) The root always contains the largest key. b) All keys in the left subtree are always smaller than any key in the corresponding right subtree. c) All leaves are located on the same level.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY