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

📄 page518.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="tex2html7113" HREF="page519.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html7111" HREF="page478.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html7107" HREF="page517.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html7115" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H1><A NAME="SECTION00151100000000000000000">Projects</A></H1><P><OL><LI>	Design and implement an algorithm that finds all the duplicates	in a random sequence of keys.<LI>	Suppose we wish to sort a sequence of data represented using	the linked-list class <tt>LinkedList</tt>	introduced in Program&nbsp;<A HREF="page98.html#proglinkedLista"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.	Which of the sorting algorithms described in this chapter	is the most appropriate for sorting a linked list?	Design and implement a linked list sorter class	that implements this algorithm.<LI>	Replace the <tt>mergesort</tt> method of the <tt>MergeSorter</tt> class	with a non-recursive version.	What is the running time of the non-recursive merge sort?<LI>	Replace the <tt>quickort</tt> method	of the <tt>QuickSorter</tt> class	with a non-recursive version.	What is the running time of the non-recursive quick sort?	<b>Hint</b>: Use a stack.<LI>	Design and implement a radix-sorter class that sorts	an array of <em>strings</em>.<LI>	Design and implement a <tt>RandomPivotQuickSorter</tt> class	that uses a random number generator (see Section&nbsp;<A HREF="page465.html#secalgsrng"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>)	to select a pseudorandom pivot.	Run a sequence of experiments to compare the running times	of random pivot selection with median-of-three pivot selection.<LI>	Design and implement a <tt>MeanPivotQuickSorter</tt> class	that partitions the sequence to be sorted	into elements that are less than the mean	and elements that are greater than the mean.	Run a sequence of experiments to compare the running times	of the mean pivot quick sorter with median-of-three pivot selection.<LI>	Design and implement a <tt>MedianPivotQuickSorter</tt> class	that uses the algorithm given in Exercise&nbsp;<A HREF="page517.html#exercisesortingselect"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>	to select the median element for the pivot.	Run a sequence of experiments to compare the running times	of median pivot selection with median-of-three pivot selection.<LI>	Design and implement a sorter class	that sorts using a <tt>PriorityQueue</tt> instance.	(See Chapter&nbsp;<A HREF="page351.html#chappqueues"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>).</OL><P><HR><A NAME="tex2html7113" HREF="page519.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html7111" HREF="page478.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html7107" HREF="page517.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html7115" 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 + -