forked from xnkasy/Assignment123COL106Public
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA2DynamicMem.java
More file actions
20 lines (14 loc) · 755 Bytes
/
A2DynamicMem.java
File metadata and controls
20 lines (14 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Class: A2DynamicMem
// Implements Degragment in A2. No other changes should be needed for other functions.
public class A2DynamicMem extends A1DynamicMem {
public A2DynamicMem() { super(); }
public A2DynamicMem(int size) { super(size); }
public A2DynamicMem(int size, int dict_type) { super(size, dict_type); }
// In A2, you need to test your implementation using BSTrees and AVLTrees.
// No changes should be required in the A1DynamicMem functions.
// They should work seamlessly with the newly supplied implementation of BSTrees and AVLTrees
// For A2, implement the Defragment function for the class A2DynamicMem and test using BSTrees and AVLTrees.
public void Defragment() {
return ;
}
}