Consider the following algorithms and their running times:
| Algorithms | Complexities | ||
| (A) | Breadth First Search | (I) | θ(v + E) |
| (B) | Rabin-Karp Algorithm | (II) | O(v + E) |
| (C) | Depth-First Search | (III) | θ((n − m − 1)m) |
| (D) | Heap sort (worst case) | (IV) | O(n2) |
| (E) | Quick sort (worst case) | (V) | O(n lg n) |
Which one of the following is correct?