page191.html

来自「Data Structures And Algorithms With Obje」· HTML 代码 · 共 43 行

HTML
43
字号
<HTML><HEAD><TITLE>Array 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="tex2html3406" HREF="page192.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html3404" HREF="page190.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html3398" HREF="page190.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html3408" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H2><A NAME="SECTION007210000000000000000">Array Implementation</A></H2><P>The <tt>SortedListAsArray</tt> class is introducedin Program&nbsp;<A HREF="page191.html#progsortedListAsArraya"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.The <tt>SortedListAsArray</tt> class extends the<tt>OrderedListAsArray</tt> classintroduced in Program&nbsp;<A HREF="page170.html#progorderedListAsArraya"><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="9953">&#160;</A><A NAME="progsortedListAsArraya">&#160;</A> <IMG WIDTH=575 HEIGHT=122 ALIGN=BOTTOM ALT="program9840" SRC="img801.gif"  ><BR><STRONG>Program:</STRONG> <tt>SortedListAsArray</tt> class.<BR><P><P>There are no addition instance attributes required to implementthe <tt>SortedListAsArray</tt> class.That is, the instance attributes provided by the base class<tt>OrderedListAsArray</tt> are sufficient.<P><BR> <HR><UL> <LI> <A NAME="tex2html3409" HREF="page192.html#SECTION007211000000000000000">Inserting Items in a Sorted List</A><LI> <A NAME="tex2html3410" HREF="page193.html#SECTION007212000000000000000">Locating Items in an Array-Binary Search</A><LI> <A NAME="tex2html3411" HREF="page194.html#SECTION007213000000000000000">Finding Items in a Sorted List</A><LI> <A NAME="tex2html3412" HREF="page195.html#SECTION007214000000000000000">Removing Items from a List</A></UL><HR><A NAME="tex2html3406" HREF="page192.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html3404" HREF="page190.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html3398" HREF="page190.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html3408" 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 + =
减小字号Ctrl + -
显示快捷键?