function [nStrata, sample2strat] = getAlpha(N,method,attempt)

switch method
    
    case 'bootstrap'
        nStrata = 1;
        sample2strat = ones(N,1);
        
    case 'adaptiveBootstrap'
        if attempt == 0
            nStrata = N;
            sample2strat = 1:N;
        else
            nStrata = 1;
            sample2strat = ones(N,1);
        end
        
    case 'blockstrategy1'
        
        blockSize = 2^attempt;
        nStrata = N/blockSize;
        
        sample2strat = ceil((1:N)/blockSize);
        
    case 'greedy'
        
        blockSize = 2^attempt;
        nStrata = N/blockSize;
        
        sample2strat = ceil((1:N)/blockSize);
        
    otherwise
        error('Unknown method');
end
