public void generateData(int n, TimeComplexity complexity){
		super.generateData(n, complexity);
		if(isHeap)
			heap.clear();
		else
			bst.clear();

			if(complexity.equals(TimeComplexity.AVERAGE) || (!isHeap &&complexity.equals(TimeComplexity.BEST)))
				data = Helper.permutedInts(n);
			else if(complexity.equals(TimeComplexity.WORST))
					data = Helper.descendingInts(n);
			else if(complexity.equals(TimeComplexity.BEST) && isHeap)
				data = Helper.ascendingInts(n);
	}