Commit e3d7861

mo khan <mo.khan@gmail.com>
2020-08-26 21:40:40
Add assignment 3 questions
1 parent 64343a3
src/03/01/README.md
@@ -0,0 +1,3 @@
+Illustrate that the nodes of any AVL tree T can be
+colored "red" and "black" so that T becomes a
+red-black tree.
src/03/02/README.md
@@ -0,0 +1,4 @@
+Illustrate that via AVL single rotation, any binary search tree T1 can be
+transformed into another search tree T2 (with the same items).
+
+Give an algorithm to perform this transformation using O(N log N) rotation on average.
src/03/03/README.md
@@ -0,0 +1,5 @@
+Suppose you are given two sequences S1 and S2 of `n` elements, possibly
+containing duplicates, on which a total order relation is defined.
+
+1. Describe an efficient algorithm for determining if S1 and S2 contain the same set of elements.
+1. Analyze the running time of this method).
src/03/04/README.md
@@ -0,0 +1,8 @@
+Given sequence 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, sort the sequence using the
+following algorithms, and illustrate the details of the execution of the
+algorithms:
+
+a. merge-sort algorithm.
+b. quick-sort algorithm.
+  * Choose a partitioning strategy you like to pick a pivot element from the sequence.
+  * Analyze how different portioning strategies may impact on the performance of the sorting algorithm.
src/03/05/README.md
@@ -0,0 +1,7 @@
+Given the graph shown below, answer the following questions:
+
+1. Illustrate the sequence of vertices of this graph visited using depth-first search traversal starting at vertex `g`.
+1. Illustrate the sequence of vertices of this graph visited using breadth-first search traversal starting at vertex `b`.
+1. Illustrate adjacency list representation and adjacency matrix representation, respectively, for this graph.
+  * What are the advantages and disadvantages of those two representations?
+1. Describe an algorithm to find in the graph a path illustrated below that goes through every edge exactly once in each direction.
src/03/06/README.md
@@ -0,0 +1,3 @@
+Why does the method `remove(x)` in the `RedBlackTree` implementation
+perform the assignment `u:parent = w:parent?`
+Shouldn’t this already be done by the call to `splice(w)`?
src/03/07/README.md
@@ -0,0 +1,2 @@
+Implement the `remove(u)` method, that removes the node `u` from a
+`MeldableHeap`. This method should run in `O(log n)` expected time.
src/03/08/README.md
@@ -0,0 +1,1 @@
+Prove that a binary tree with `k` leaves has height at least `log k`.