    @Test
    public void testSort() throws Exception {


        int a[]={2,5,3,0,2,3,0,3};

        int result= selectIndexDataActivity.randomizedSelect(a,0,a.length-1,3);//产生第三小的数
        System.out.println("快速选择算法求出的,第"+3+"个最小数是："+result);

        assertEquals(2,result);

    }