Skip to main content

All Questions

1 vote
1 answer
121 views

Run Time Analysis of the Merging Part in Mergesort

I want to show that if I apply the Mergesort on a set $M$ with $n$ elements and divide $M$ in $2<b\le n$ parts instead of just $2$, that the I need $O(nlog_2 (b))$ time for the merging part. So ...
Chiray's user avatar
  • 297
1 vote
0 answers
241 views

How to state a recurrence that expresses the worst case for good pivots?

The Problem Consider the randomized quicksort algorithm which has expected worst case running time of $\theta(nlogn)$ . With probability $\frac12$ the pivot selected will be between $\frac{n}{4}$ and $...
committedandroider's user avatar