Skip to content

Commit

Permalink
Added AVL Example Trees, Updated build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Porvil committed Dec 12, 2020
1 parent 67e86e2 commit af02f65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pair<Integer, Integer>> a : tableRowsCoordinates){
for(Pair<Integer, Integer> p : a){
System.out.print(p);
}
System.out.println();
}
createExampleTree(AVLInfo.tree3);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,8 @@ public class AVLInfo {
map.put(SINGLE_MERGE, new Integer[]{1, 2});
}

// public static final List<Integer> tree1 = Arrays.asList(8, 4, 12, 2);
// public static final List<Integer> tree1 = Arrays.asList(30,20,40,10);
// public static final List<Integer> tree1 = Arrays.asList(30,10,40,20);
// public static final List<Integer> tree1 = Arrays.asList(30,10,40,5,20);
// public static final List<Integer> tree1 = Arrays.asList(20,10,30,40);
// public static final List<Integer> tree1 = Arrays.asList(20,10,40,30);
public static final List<Integer> tree1 = Arrays.asList(20,10,30,25,40);
// public static final List<Integer> tree1 = Arrays.asList(31,23,61,13,27,51,83,30,91);
// public static final List<Integer> tree1 = Arrays.asList(8,4,14,6,12,42,72);
// public static final List<Integer> tree1 = Arrays.asList(8, 4, 12, 14);
// public static final List<Integer> tree1 = Arrays.asList(100, 50, 150, 20, 70, 60, 80, 120, 200, 220, 110, 130);
public static final List<Integer> tree2 = Arrays.asList(8,2,12,1,6);
// public static final List<Integer> tree2 = Arrays.asList(100, 150, 120, 200, 220, 110, 130);
public static final List<Integer> tree3 = Arrays.asList(50, 40, 100, 30, 45, 10, 35, 65);
public static final List<Integer> tree1 = Arrays.asList(60, 30, 80, 40, 70);
public static final List<Integer> tree2 = Arrays.asList(60, 40, 80, 20, 50);
public static final List<Integer> tree3 = Arrays.asList(50, 30, 80, 60, 100);

}

0 comments on commit af02f65

Please sign in to comment.