算法分析设计与分析-蛮力法(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

你可能感兴趣的:(算法分析-蛮力法)