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

📄 page110.html

📁 Data Structures And Algorithms With Object-Oriented Design Patterns In Python (2003) source code and
💻 HTML
字号:
<HTML><HEAD><TITLE>Projects</TITLE></HEAD><BODY bgcolor="#FFFFFF"> <a href="../index.html" target="_top"><img src="../icons/usins.gif" alt="Logo" align=right></a><b>Data Structures and Algorithms with Object-Oriented Design Patterns in Python</b><br><A NAME="tex2html2474" HREF="page111.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html2472" HREF="page81.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html2468" HREF="page109.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html2476" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H1><A NAME="SECTION004500000000000000000">Projects</A></H1><P><OL><LI>	Complete the implementation of the <tt>Array</tt> class given in	Program&nbsp;<A HREF="page84.html#progarraya"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page88.html#progarraye"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.	Write a test suite to verify all of the functionality.	Try to exercise every line of code in the implementation.<LI>	Complete the implementation of the <tt>LinkedList</tt> class given in	Program&nbsp;<A HREF="page98.html#proglinkedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page108.html#proglinkedListj"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.	Write a test suite to verify all of the functionality.	Try to exercise every line of code in the implementation.<LI>	Change the implementation of the <tt>LinkedList</tt> class given in	Program&nbsp;<A HREF="page98.html#proglinkedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page108.html#proglinkedListj"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>	by removing the <tt>_tail</tt> instance attribute.	That is, implement the singly-linked list variant	shown in Figure&nbsp;<A HREF="page97.html#figlinklist1"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>&nbsp;(a).	Write a test suite to verify all of the functionality.	Try to exercise every line of code in the implementation.<LI>	Change the implementation of the <tt>LinkedList</tt> class given in	Program&nbsp;<A HREF="page98.html#proglinkedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page108.html#proglinkedListj"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>	so that it uses a circular, singly-linked list with a sentinel	as shown in Figure&nbsp;<A HREF="page97.html#figlinklist1"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>&nbsp;(c).	Write a test suite to verify all of the functionality.	Try to exercise every line of code in the implementation.<LI>	The <tt>MultiDimensionalArray</tt> class given in	Program&nbsp;<A HREF="page92.html#progmultiDimensionalArraya"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page93.html#progmultiDimensionalArrayb"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>	only supports subscript ranges starting at zero.	Modify the implementation to allow an arbitrary subscript base	in each dimension.<LI>	Design and implement a three-dimensional matrix class <tt>Matrix3D</tt>	based on the two-dimensional class <tt>DenseMatrix</tt> given in	Program&nbsp;<A HREF="page95.html#progdenseMatrixa"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page96.html#progdenseMatrixb"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A><LI>	A row vector is a  <IMG WIDTH=35 HEIGHT=20 ALIGN=MIDDLE ALT="tex2html_wrap_inline60653" SRC="img638.gif"  > matrix and a column vector	is an  <IMG WIDTH=36 HEIGHT=20 ALIGN=MIDDLE ALT="tex2html_wrap_inline60655" SRC="img639.gif"  > matrix.	Define and implement classes <tt>RowVector</tt> and	<tt>ColumnVector</tt> as classes derived	from the base class <tt>Array</tt> given in	Program&nbsp;<A HREF="page84.html#progarraya"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> to Program&nbsp;<A HREF="page88.html#progarraye"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.	Show how these classes can be combined to implement	the <tt>Matrix</tt> interface declared in Program&nbsp;<A HREF="page94.html#progmatrixa"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.</OL><P><HR><A NAME="tex2html2474" HREF="page111.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html2472" HREF="page81.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html2468" HREF="page109.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html2476" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <P><ADDRESS><img src="../icons/bruno.gif" alt="Bruno" align=right><a href="../copyright.html">Copyright &#169; 2003</a> by <a href="../signature.html">Bruno R. Preiss, P.Eng.</a>  All rights reserved.</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

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