Question

1. Time Complexity of Kruskal's Algorithm Which best describes the relative time complexities of the pre-sorting...

1. Time Complexity of Kruskal's Algorithm

Which best describes the relative time complexities of the pre-sorting and main parts of algorithm?

A) The time to pre-sort dominates

B) The main part dominates

C) The relationship depends on the sort and disjoint-set operations being used

D) Kruskal's algorithm doesn't use pre-sorting

2. Kruskal's Algorithm: Disjoint Set Operations

What are the number of calls to the respective disjoint set operations in Kruskal's Algorithm?

A) MAKE-SET O(V), FIND O(V), UNION (V)

B) MAKE-SET O(V), FIND O(V), UNION (E)

C) MAKE-SET O(V), FIND O(E), UNION (V)

D) MAKE-SET O(V), FIND O(E), UNION (E)

E) MAKE-SET O(E), FIND O(V), UNION (V)

F) MAKE-SET O(E), FIND O(V), UNION (E)

G) MAKE-SET O(E), FIND O(E), UNION (V)

H) MAKE-SET O(E), FIND O(E), UNION (E)

3. Inverse of Ackermann's Function

Which best describes the rate of growth of α(n), the inverse of Ackermann's function

A) iterated logarithm

B) logarithm

C) linear

D) quadratic

E) exponential

F) super-expoential

4. Disjoint Set Operations: Compressing Find

Which best describes the disjoint set operation Compressing Find

A) Add all keys along the path from given node to root and store in the root

B) Add all keys along the path from root to given node and store in the given node

C) Make each node along the path from given node to root point to the root

D) Make each node along the path from root to given node point to the given node

E) Make all leaf nodes point to the root

F) Make all nodes point to the root

  

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

The pre-sorting takes O(ElogE) time

The main part takes O(logV)

so the time oto pre sort dominates

So option A is correct

2.

MAKE SET(V), FIND SET(V), UNION(E)

So option B is correct

3.

Inverse ackernann has a slow growth rate

The growth rate is linear

So option C is correct

4.

Make each node along the path from given node to root point to the root

So option C is correct

Add a comment
Know the answer?
Add Answer to:
1. Time Complexity of Kruskal's Algorithm Which best describes the relative time complexities of the pre-sorting...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Warshall's Algorithm To which other algorithm from our course is Wasrhall's Transitive Closure algorithm most...

    1. Warshall's Algorithm To which other algorithm from our course is Wasrhall's Transitive Closure algorithm most structurally similar? A) Dijkstra B) Floyd C) Kadane D) Karatsuba E) Kruskal F) Prim G) Strassen 2. Powers of Adjacency Matrix Which is true of an Adjacency Matrix of a directed graph raised to the k-th power (A^k) A) A^k ​[i]​[j] = 1 if there is an edge of length k from vertex i to vertex j B) A^k ​[i]​[j] = 1 if there...

  • 1 1 point Consider the following algorithm for factoring an integer N provided as input (in...

    1 1 point Consider the following algorithm for factoring an integer N provided as input (in binary): For i = 2 to [VN.17 i divides N, then output (i, N/). Which of the following statements is true? This algorithm is correct, but it runs in exponential time. This algorithm is not correct, because it will sometimes fail to find a factorization of Neven if N is composite This algorithm runs in sub-linear time, and always factors N it Nis composite...

  • In this assignment you’ll implement a data structure called a trie, which is used to answer...

    In this assignment you’ll implement a data structure called a trie, which is used to answer queries regarding the characteristics of a text file (e.g., frequency of a given word). This write-up introduces the concept of a trie, specifies the API you’re expected to implement, and outlines submission instructions as well as the grading rubric. Please carefully read the entire write-up before you begin coding your submission. Tries A trie is an example of a tree data structure that compactly...

  • I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this p...

    I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this paper and some conclusions and contributes of this paper. I need this for my Finishing Project so i need this ASAP please ( IN 1-2-3 HOURS PLEASE !!!) Budgetary Policy and Economic Growth Errol D'Souza The share of capital expenditures in government expenditures has been slipping and the tax reforms have not yet improved the income...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT