摘要: //构建哈希节点类 class HashNode{ privateinte; private HashNode next; public HashNode() { this.e=0; this.next=null; } public HashNode(inte) { super(); this.e 阅读全文
posted @ 2018-07-28 17:24 带带大璞璞 阅读(299) 评论(0) 推荐(0) 编辑
摘要: publicinterface IGraph<E> { int getNumOfVertex(); //获取顶点个数 boolean insertVer(E e); //插入顶点 boolean deleteVer(E e); //删除顶点 int indexOf(E e); //获得顶点位置 E 阅读全文
posted @ 2018-07-28 12:23 带带大璞璞 阅读(577) 评论(0) 推荐(0) 编辑
摘要: //直接插入排序 publicstaticint[] insertSort(int []data) { intlen=data.length; for(inti=1;i<len;i++) { inttemp=data[i]; intj; for(j=i-1;j>=0&&data[j]>temp;j- 阅读全文
posted @ 2018-07-28 12:23 带带大璞璞 阅读(327) 评论(0) 推荐(0) 编辑