A D 6. Select all that apply: O a. The minimum spanning tree does not exist. O b. A minimum spanning tree exists and has a total weight of 43 OC A minimum spanning tree exists and has a total weight of 42 O d. A minimum spanning tree exists and has a total weight more than43 O e. There exists more than one minimum spanning tree in this graph.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

All solve the problem

Let us consider the following weighted graph.
11
7.
15
F
4.
3
14
10
9.
17
12
6.
Select all that apply:
O a. The minimum spanning tree does not exist.
O b. A minimum spanning tree exists and has a total weight of 43
OC. A minimum spanning tree exists and has a total weight of 42
O d. A minimum spanning tree exists and has a total weight more than43
O e. There exists more than one minimum spanning tree in this graph.
Time
We are given an array that contains N numbers. We want to determine if there are two numbers whose sum equals a given number K I
instance, if the input is 8, 4, 1, 6 and K is 10, then the answer is yes (4 and 6). A number may be used twice.
Select all that apply
O a. If the elements are first sorted with mergesort, then the total cost of the solving algoritham is O(N log N)
Ob.
A brute-force search algorithm costs O(N)
A brute force search algorithm costs O(N)
Od. If the elements are first sorted with insertion sort, then the total cost of the solving algorithm is O(N log N)
A minimum spanning tree of an indirect weighted graph G (with N nodes and E edges) is a tree formed from graph edges that connects all nodes
of G at lowest total cost.
Select all that apply
O a
Kruskal's algorithm can solve this problem in E log E+ Eif intertion sort is used (to sort the edges)
Ob Kruskal's algorithm can solve this problem in E+ E log Eif a heap structure is used.
Oc Kruskal's algorithm can solve this problem in E log E+ Eif merge sort is used (to sort the edges).
Od. In order to find the minimum spanning tree, the graph G should be connected.
Oe Dynamic Programming is required to solve this problem.
Ot. This problem can be solved using Kruskal's Algorithm.
Transcribed Image Text:Let us consider the following weighted graph. 11 7. 15 F 4. 3 14 10 9. 17 12 6. Select all that apply: O a. The minimum spanning tree does not exist. O b. A minimum spanning tree exists and has a total weight of 43 OC. A minimum spanning tree exists and has a total weight of 42 O d. A minimum spanning tree exists and has a total weight more than43 O e. There exists more than one minimum spanning tree in this graph. Time We are given an array that contains N numbers. We want to determine if there are two numbers whose sum equals a given number K I instance, if the input is 8, 4, 1, 6 and K is 10, then the answer is yes (4 and 6). A number may be used twice. Select all that apply O a. If the elements are first sorted with mergesort, then the total cost of the solving algoritham is O(N log N) Ob. A brute-force search algorithm costs O(N) A brute force search algorithm costs O(N) Od. If the elements are first sorted with insertion sort, then the total cost of the solving algorithm is O(N log N) A minimum spanning tree of an indirect weighted graph G (with N nodes and E edges) is a tree formed from graph edges that connects all nodes of G at lowest total cost. Select all that apply O a Kruskal's algorithm can solve this problem in E log E+ Eif intertion sort is used (to sort the edges) Ob Kruskal's algorithm can solve this problem in E+ E log Eif a heap structure is used. Oc Kruskal's algorithm can solve this problem in E log E+ Eif merge sort is used (to sort the edges). Od. In order to find the minimum spanning tree, the graph G should be connected. Oe Dynamic Programming is required to solve this problem. Ot. This problem can be solved using Kruskal's Algorithm.
Let us consider the binary trees below.
B
d)
c)
Select all that apply:
O a.
Tree in c) has the AVL (height-balanced 1-tree) property.
O b. For tree d), if we remove node D, then the tree will have the AVL property.
O. Tree in d) has the AVL property
Od. For tree d), if we add a right child to node E, then the tree will have the AVL property.
O e. Tree in c) will not have the AVL property, if a right child is added to node D.
Let us consider the following program fragment
sum = 0;
for (i=0;i<n;i++)
for (j=0;j<n*n;j++)
sum++;
O a. The program runs in O(1)
O b. The program runs in O(n^3)
O c. The program runs in O(n)
O d. The program runs in O(n^2)
Transcribed Image Text:Let us consider the binary trees below. B d) c) Select all that apply: O a. Tree in c) has the AVL (height-balanced 1-tree) property. O b. For tree d), if we remove node D, then the tree will have the AVL property. O. Tree in d) has the AVL property Od. For tree d), if we add a right child to node E, then the tree will have the AVL property. O e. Tree in c) will not have the AVL property, if a right child is added to node D. Let us consider the following program fragment sum = 0; for (i=0;i<n;i++) for (j=0;j<n*n;j++) sum++; O a. The program runs in O(1) O b. The program runs in O(n^3) O c. The program runs in O(n) O d. The program runs in O(n^2)
Expert Solution
steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Single source shortest path
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education