public class Neughbor{
private integer sourcecell;
private integer destcell;
public integer getsourcecell(){
return sourcecell;
}
public void setsourcecell(integer sourcecell){
this.sourcecell=sourcecell;
}
public integer getdestcell(){
return destcell;
}
public void setdestcell(integer destcell){
this.destcell=destcell;
}
}
业务描述:单项邻区:如果两个列表中存在一个sourcecell是n1、destcell是n2的neigbhor对象,并且在两个列表中不存在sourcecell是n2、destcell是n1的neighbor对象,则该neighbor对象就是单向邻区对象
输入:List<Neighbor>innerNbr;List<Neighbor>extNbr;
输出:打印出innernbr和extnbr列表中所有单向邻区对象
要求,当两个表的数据量很大时用最优的时间复杂度实现
private integer sourcecell;
private integer destcell;
public integer getsourcecell(){
return sourcecell;
}
public void setsourcecell(integer sourcecell){
this.sourcecell=sourcecell;
}
public integer getdestcell(){
return destcell;
}
public void setdestcell(integer destcell){
this.destcell=destcell;
}
}
业务描述:单项邻区:如果两个列表中存在一个sourcecell是n1、destcell是n2的neigbhor对象,并且在两个列表中不存在sourcecell是n2、destcell是n1的neighbor对象,则该neighbor对象就是单向邻区对象
输入:List<Neighbor>innerNbr;List<Neighbor>extNbr;
输出:打印出innernbr和extnbr列表中所有单向邻区对象
要求,当两个表的数据量很大时用最优的时间复杂度实现
解决方案 »
- Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPe
- jsp连接数据库
- formValidator的使用问题
- 在线等,怎么把String转换为Clob类型 啊 ...
- session遇到麻烦了,往解答!!!!!!!!!!!
- Java web start设置自动下载JRE页面问题。
- 谁的qq里有关于java学习的群号,能否告诉我一个!
- 求Optimizeit 的 key
- 请问用JavaMail如何得到信箱中的除了“Inbox”以外的东西
- 一个方法中两个return
- 真心诚意求解,Hibernate多对多的查询方法
- 【急】struts2为何不能如此封装数据?高手进!!!
然后遍历查找.时间复杂度最好情况下o(n),最坏情况下o(n2)大概是这样?
}}