Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Which of the following algorithm is NOT using divide-and-conquer? A. Merge sort B. Heap sort C. Quick sort Binary search 2. Using divide-and-conquer technique

1.

Which of the following algorithm is NOT using divide-and-conquer?

A.

Merge sort

B.

Heap sort

C.

Quick sort

Binary search

2. Using divide-and-conquer technique if we know X, what is the minimal number of multiplications we need to compute X^40 ? (Hint: X^N=X^(N/2)* X^(N/2) is one multiplication, ^ is used for the exponential computation)

A.

5

B.

6

C.

7

3. The directed graph: V={V0,V1, V2,V3,V4,V5,V6}. There are the following twelve edges, with edge costs listed as the third item in the triplet: E={ (V0,V2,4), (V1,V0,2), (V1,V3,3), (V3,V0,1), (V3,V2,2), (V3,V5,8), (V3,V6,4), (V4,V1,10), (V4,V3,2), (V4,V6,7), (V5,V2,2), (V6,V5,1)}. If the above graph were undirected, then what would be the cost of its minimum spanning tree?

A.

9

B.

10

C.

11

D.

12

8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

How will the members be held accountable?

Answered: 1 week ago