diff --git a/app/build.gradle b/app/build.gradle index 7ddb839..f52e703 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,5 +31,4 @@ dependencies { implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'com.github.florent37:viewanimator:1.1.0' -// implementation 'de.blox:graphview:0.7.1' } \ No newline at end of file diff --git a/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLActivity.java b/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLActivity.java index f4e537b..0e2b344 100644 --- a/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLActivity.java +++ b/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLActivity.java @@ -368,13 +368,7 @@ public void onClick(View v) { btn_tree3.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { -// createExampleTree(AVLInfo.tree3); - for(ArrayList> a : tableRowsCoordinates){ - for(Pair p : a){ - System.out.print(p); - } - System.out.println(); - } + createExampleTree(AVLInfo.tree3); } }); diff --git a/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLInfo.java b/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLInfo.java index c2aa226..a25b40a 100644 --- a/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLInfo.java +++ b/app/src/main/java/com/iiitd/dsavisualizer/datastructures/trees/avl/AVLInfo.java @@ -35,19 +35,8 @@ public class AVLInfo { map.put(SINGLE_MERGE, new Integer[]{1, 2}); } -// public static final List tree1 = Arrays.asList(8, 4, 12, 2); -// public static final List tree1 = Arrays.asList(30,20,40,10); -// public static final List tree1 = Arrays.asList(30,10,40,20); -// public static final List tree1 = Arrays.asList(30,10,40,5,20); -// public static final List tree1 = Arrays.asList(20,10,30,40); -// public static final List tree1 = Arrays.asList(20,10,40,30); - public static final List tree1 = Arrays.asList(20,10,30,25,40); -// public static final List tree1 = Arrays.asList(31,23,61,13,27,51,83,30,91); -// public static final List tree1 = Arrays.asList(8,4,14,6,12,42,72); -// public static final List tree1 = Arrays.asList(8, 4, 12, 14); -// public static final List tree1 = Arrays.asList(100, 50, 150, 20, 70, 60, 80, 120, 200, 220, 110, 130); - public static final List tree2 = Arrays.asList(8,2,12,1,6); -// public static final List tree2 = Arrays.asList(100, 150, 120, 200, 220, 110, 130); - public static final List tree3 = Arrays.asList(50, 40, 100, 30, 45, 10, 35, 65); + public static final List tree1 = Arrays.asList(60, 30, 80, 40, 70); + public static final List tree2 = Arrays.asList(60, 40, 80, 20, 50); + public static final List tree3 = Arrays.asList(50, 30, 80, 60, 100); }