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

📄 page196.html

📁 Data Structures And Algorithms With Object-Oriented Design Patterns In Python (2003) source code and
💻 HTML
字号:
<HTML><HEAD><TITLE>Linked-List Implementation</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="tex2html3463" HREF="page197.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html3461" HREF="page190.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html3455" HREF="page195.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html3465" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H2><A NAME="SECTION007220000000000000000">Linked-List Implementation</A></H2><P>This section presents a linked-list implementation of sorted liststhat is derived from the <tt>OrderedListAsLinkedList</tt>class given in Section&nbsp;<A HREF="page179.html#seclistslistp"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.The <tt>SortedListAsLinkedList</tt> classis introduced in Program&nbsp;<A HREF="page196.html#progsortedListAsLinkedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.The <tt>SortedListAsLinkedList</tt> extends the<tt>OrderedListAsLinkedList</tt> classintroduced in Program&nbsp;<A HREF="page179.html#progorderedListAsLinkedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>and it also extends the abstract <tt>SortedList</tt> classdefined in Program&nbsp;<A HREF="page190.html#progsortedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.<P><P><A NAME="10461">&#160;</A><A NAME="progsortedListAsLinkedLista">&#160;</A> <IMG WIDTH=575 HEIGHT=142 ALIGN=BOTTOM ALT="program10222" SRC="img813.gif"  ><BR><STRONG>Program:</STRONG> <tt>SortedListAsLinkedList</tt> class.<BR><P><P>There are no additional instance attributes definedin the <tt>SortedListAsLinkedList</tt> class.The inherited instance attributes are sufficient to implement a sorted list.In fact, the functionality inheritedfrom the <tt>ListAsLinkedList</tt> class is almost sufficient--the only method of which the functionality must changeis the <tt>insert</tt> operation.<P><BR> <HR><UL> <LI> <A NAME="tex2html3466" HREF="page197.html#SECTION007221000000000000000">Inserting Items in a Sorted List</A><LI> <A NAME="tex2html3467" HREF="page198.html#SECTION007222000000000000000">Other Operations on Sorted Lists</A></UL><HR><A NAME="tex2html3463" HREF="page197.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html3461" HREF="page190.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html3455" HREF="page195.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html3465" 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 + -