アルゴリズム分析設計と分析-蛮力法(3)--順序検索


package Force_Method;

public class Sequentialsort {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int a[] = {87,45,68,90,29,34,17,123,12456,1};
		int k=1;

		System.out.println(	Sequentialsort(a,k));
	}

	private static int Sequentialsort(int[] a, int k) {
		//    
		for(int i=0;i