Homework Introduction

A、B两题复习

结构一:求一个解、所有解、最优解(数组模拟)
head=0;
tail=1;
while head<tail 
{ 
     if 找到目标状态
           then 做相应处理(退出循环输出解、输出当前解、比较解的优劣)
           else
             {         扩展头节点;
                        if    结点拓展出的新节点没出现过 then	      
                	            { 
			   tail++ 
			   将新节点添加入队列;	 
		             } 
       	} 
	head++ 
} 
结构二:找到一个解就退出(或者无解)
p=true; 
while (p) 
{ 
       if 头结点是目标状态 then p=false 
           else { 
                     扩展头节点
                     if 头结点拓展出的新节点没出现过 then 
	                  { 
     		            tail++; 
		            将新节点添加入队列; 
	                  } 
	                  head++ 
                      if    head>tail  then p=false; 
                  } 
}

Problem

Please claim the assignment to see the problems.
Status
Live...
Problem
4
Open Since
2025-5-10 0:00
Deadline
2025-5-18 23:59
Extension
24 hour(s)