⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texta-18.htm

📁 浙江大学计算机学院数据结构课程的教学课件
💻 HTM
字号:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" link="#0000FF" vlink="#3399FF" alink="#FF0066">
<pre>&nbsp;</pre>
<div id="Layer1" style="position:absolute; width:711px; height:21px; z-index:1; top: 10px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000; left: 26px"><b>|</b><font face="宋体" size="2"><a href="../text1/text1-0.htm">第一章</a></font><b>|</b><font face="宋体" size="2"><a href="../text2/text2-0.htm">第二章</a></font><b>|</b><font face="宋体" size="2"><a href="../text3/text3-0.htm">第三章</a></font><b>|</b><font face="宋体" size="2"><a href="../text4/text4-0.htm">第四章</a></font><b>|</b><font face="宋体" size="2"><a href="../text5/text5-0.htm">第五章</a></font><b>|</b><font face="宋体" size="2"><a href="../text6/text6-0.htm">第六章</a></font><b>|</b><font face="宋体" size="2"><a href="../text7/text7-0.htm">第七章</a></font><b>|</b><font face="宋体" size="2"><a href="../text8/text8-0.htm">第八章</a></font><b>|</b><font face="宋体" size="2"><a href="../text9/text9-0.htm">第九章</a></font><b>|</b><font face="宋体" size="2"><a href="../text10/text10-0.htm">第十章</a></font><b>|</b><font size="2" face="宋体">算法分析<b><font color="#000000">|</font></b> 
  </font></div>
<pre align="left">

<b><font face="宋体" size="4" color="#FF0033">例5<font face="Arial, Helvetica, sans-serif">.</font>1</font><font face="宋体" size="4" color="#000000">  旅行商问题
</font></b></pre>
<table width="36%" cellspacing="0" hspace="50">
  <tr> 
    <td width="9%"> 
      <pre><img src="IMAGE/%5B.gif" width="24" height="168"></pre>
    </td>
    <td width="71%"> 
      <pre><b><font face="宋体" size="4" color="#000000">∞   20   30   10   11
15   ∞   16   4    2
3    5    ∞   2    4
19   6    18   ∞   3
16   4    7    16   ∞
</font></b></pre>
    </td>
    <td width="20%"> 
      <pre><img src="IMAGE/%5D.gif" width="15" height="161"></pre>
    </td>
  </tr>
</table>
<pre align="left"><b><font face="宋体" size="4" color="#000000">
<font color="#FF0033">行(列)归约:</font>
  代价矩阵中任一行(列)各元素中,减去这一行(列)中最小元素。</font></b></pre>
<table width="60%" cellspacing="0">
  <tr> 
    <td width="4%"> 
      <pre><img src="IMAGE/%5B.gif" width="24" height="168"></pre>
    </td>
    <td width="36%"> 
      <pre><b><font face="宋体" size="4" color="#000000">∞  10  20   0   1 
13  ∞  14   2   0
1   3   ∞   0   2
16  3   15  ∞   0
12  0   3   12  ∞
</font></b></pre>
    </td>
    <td width="3%"> 
      <pre><img src="IMAGE/%5D.gif" width="15" height="161"></pre>
    </td>
    <td width="15%"> <b>--------&gt;</b></td>
    <td width="42%"> 
      <table width="36%" cellspacing="0">
        <tr> 
          <td width="8%" height="171"> 
            <pre><img src="IMAGE/%5B.gif" width="24" height="168"></pre>
          </td>
          <td width="70%" height="171"> 
            <pre><b><font face="宋体" size="4" color="#000000">∞  10  17  0   1
12  ∞  11  2   0
0   3   ∞  0   2
15  3   12 ∞   0
11  0   0  12  ∞</font>
</b></pre>
          </td>
          <td width="22%" height="171"> 
            <pre><img src="IMAGE/%5D.gif" width="15" height="161"></pre>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<pre><b><font face="宋体" size="4" color="#FF0033">归约矩阵:</font><font face="宋体" size="4" color="#000000">各行各列都是归纳的代价矩阵。

r(i)   i行的约数
r'(i)  i列的约数
r     矩阵的约数
         <i><font face="Arial, Helvetica, sans-serif">  r = ∑r( I ) +  ∑r'( j )    (1≤i≤n, 1≤j≤n)   <font color="#FF0033">=25</font></font></i></font></b></pre>
<table width="65%" cellspacing="0" hspace="100">
  <tr align="center"> 
    <td width="6%" height="109" valign="middle"> 
      <pre><font color="#FF0033"><b><font face="宋体" size="4">C'</font></b></font></pre>
    </td>
    <td width="6%" height="109" valign="top"><img src="IMAGE/%5B.gif" width="24" height="97"></td>
    <td width="65%" height="109" valign="top"> 
      <pre><b><font face="宋体" size="4" color="#000000">∞   10   17    0     1
12   ∞   11    2     0
0    3    ∞    0     2
15   3    12    ∞    0
 11   0    0     12    ∞</font>
</b></pre>
    </td>
    <td width="6%" height="109" valign="top"> 
      <pre><img src="IMAGE/%5D.gif" width="15" height="100"></pre>
    </td>
    <td width="17%" height="109" valign="top"> 
      <pre><b><font face="宋体" size="4" color="#CC0033">r(1)=10
r(2)=2
r(3)=2
r(4)=3
r(5)=4</font></b></pre>
    </td>
  </tr>
  <tr align="left" valign="middle"> 
    <td colspan="5" height="49"> 
      <pre><b><font face="宋体" size="4" color="#000000"><font color="#FF0033">   r'(1)= 1   0    3     0     0</font></font></b></pre>
    </td>
  </tr>
</table>
<pre><b><font face="宋体" size="4" color="#000000">    
</font></b></pre>
<table width="732" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="327">&nbsp;</td>
    <td width="271"><a href="../index.htm"><img width="60" height="25" usemap="#MapMap4" border="0" src="../../images/home.gif"></a><a href="../index.htm"><map name="MapMap4"><area shape="rect" coords="42,-34,88,-15" href="text0.htm"><area shape="rect" coords="4,4,55,23" href="textA-index.htm"></map></a></td>
    <td width="132"><font face="楷体_GB2312" size="2"><b> <a href="texta-17.htm">上一页</a> 
      <a href="textA-19.htm">下一页</a></b></font></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -