forked from Oztaco/DataStruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
29 lines (25 loc) · 920 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace Fractional_Cascading {
class TestingClass {
static void Main(string[] args) {
// Demo fractional cascading matrices
// -> Modify ---------
int n1 = 200;
int k1 = 1000;
int x1 = (n1 * k1) / 3;
// --------------------
FCMatrixDemo fcmd = new FCMatrixDemo();
fcmd.Demo(x1, n1, k1);
// Demo for RangeTree
// -> Modify ---------
int n2 = 20;
int k2 = 3;
int locMin = 0;
int locMax = n2 * k2;
int[] rangeMins = new int[] {n2, n2, n2};
int[] rangeMaxes = new int[] {n2 * 2, n2 * 2, n2 * 2};
// --------------------
RangeTreeDemo rtd = new RangeTreeDemo(n2, k2, locMin, locMax, rangeMins, rangeMaxes);
rtd.demo();
}
}
}