亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? page438.html

?? wqeqwvrw rkjqhwrjwq jkhrjqwhrwq jkhrwq
?? HTML
字號:
<HTML>
<HEAD>
<TITLE>Exercises</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
 <img src="cover75.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cover75.gif" alt="Logo" align=right>
<b>Data Structures and Algorithms 
with Object-Oriented Design Patterns in C++</b><br>
<A NAME="tex2html7328" HREF="page439.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page439.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/next_motif.gif"></A> <A NAME="tex2html7326" HREF="page416.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page416.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/up_motif.gif"></A> <A NAME="tex2html7320" HREF="page437.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page437.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/previous_motif.gif"></A> <A NAME="tex2html7330" HREF="page9.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page9.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/contents_motif.gif"></A> <A NAME="tex2html7331" HREF="page620.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page620.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/index_motif.gif"></A> <BR><HR>
<H1><A NAME="SECTION0014600000000000000000">Exercises</A></H1>
<P>
<OL><LI>
	Consider the memory map shown in Figure&nbsp;<A HREF="page417.html#figpool1" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page417.html#figpool1"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A>.
	The figure suggests that smaller areas (both free and reserved)
	are more likely to be found at lower address than
	at higher addresses.
	<OL><LI>
		Explain why this phenomenon occurs
		and why it is undesirable.<LI>
		Propose a modification to the acquire algorithm
		that alleviates this effect.
	</OL><LI> <A NAME="exerciseheapi">&#160;</A>
	Consider a singly-linked storage pool.
	Several strategies are possible when searching a free list
	for an area of a given size:
	<DL ><DT><STRONG>first fit</STRONG>
<DD><A NAME=32135>&#160;</A>
		Select the first area encountered that is large enough
		to satisfy the request.
	    <DT><STRONG>next fit</STRONG>
<DD><A NAME=32136>&#160;</A>
		This is similar to first fit,
		except that the free list is treated as a circular list.
		Each subsequent search begins from
		the position where the previous search ended.
	    <DT><STRONG>best fit</STRONG>
<DD><A NAME=32137>&#160;</A>
		Select the smallest area that is large enough
		to satisfy the request.
	    <DT><STRONG>worst fit</STRONG>
<DD><A NAME=32138>&#160;</A>
		Select the largest area as long as it is large enough
		to satisfy the request.
<P>
 </DL>
	<OL><LI>
		Devise a scenario which illustrates that <em>next fit</em>
		can be better than <em>first fit</em>.<LI>
		Devise a scenario which illustrates that <em>best fit</em>
		can be better than <em>first fit</em>.<LI>
		Devise a scenario which illustrates that <em>first fit</em>
		can be better than <em>best fit</em>.<LI>
		Under what conditions (if any) does the <em>worst fit</em>
		scenario make sense.
	</OL><LI>
	Show how Program&nbsp;<A HREF="page424.html#progpool2c" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page424.html#progpool2c"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A> can be modified
	to implement the <em>next fit</em> storage allocation
	strategy described in Exercise&nbsp;<A HREF="page438.html#exerciseheapi" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page438.html#exerciseheapi"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A>.
	What is the running time of your algorithm?<LI>
	Show how Program&nbsp;<A HREF="page424.html#progpool2c" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page424.html#progpool2c"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A> can be modified
	to implement the <em>best fit</em> storage allocation.
	What is the running time of your algorithm?<LI>
	Devise optimal algorithms for <tt>acquire</tt> and <tt>release</tt>
	given we know <em>a priori</em> that all the areas
	acquired from a storage pool will have the same size.
	What are the running times of your algorithms?<LI>
	Consider the memory maps shown in Figure&nbsp;<A HREF="page417.html#figpool1" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page417.html#figpool1"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A> and Figure&nbsp;<A HREF="page426.html#figpool2" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page426.html#figpool2"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A>.
	When using the <tt>SinglyLinkedPool</tt> a large block
	of unused memory is located at one end the pool
	whereas when using the <tt>DoublyLinkedPool</tt>
	the large free area is located at the other end.
	Explain why this is so.<LI>
	Show how Program&nbsp;<A HREF="page430.html#progpool5c" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page430.html#progpool5c"><IMG  ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/cross_ref_motif.gif"></A> can be modified
	to implement the <em>best fit</em> storage allocation.
	<OL><LI>
		What effect does using the best-fit strategy have
		on the length of the free list in this case?<LI>
		What is the running time of your algorithm?
	</OL><LI>
	Consider the implementations of the <tt>SinglyLinkedPool</tt>
	and <tt>DoublyLinkedPool</tt> classes.
	In both cases,
	the sentinel is located immediately following the last
	block of the storage pool.
	Explain how the implementations depend on this.<LI>
	Devise an algorithm that uses bit manipulation operations to compute
	<P> <IMG WIDTH=277 HEIGHT=17 ALIGN=BOTTOM ALT="displaymath68387" SRC="img1803.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/img1803.gif"  ><P>
	where <I>n</I> is an integer such that  <IMG WIDTH=38 HEIGHT=25 ALIGN=MIDDLE ALT="tex2html_wrap_inline59533" SRC="img344.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/img344.gif"  >.<LI>
	It is possible to implement a buddy pool
	in which the size of the pool is not a power of two.
	What modifications to the algorithms
	are necessary in order to do this?
</OL><HR><A NAME="tex2html7328" HREF="page439.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page439.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/next_motif.gif"></A> <A NAME="tex2html7326" HREF="page416.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page416.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/up_motif.gif"></A> <A NAME="tex2html7320" HREF="page437.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page437.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/previous_motif.gif"></A> <A NAME="tex2html7330" HREF="page9.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page9.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/contents_motif.gif"></A> <A NAME="tex2html7331" HREF="page620.html" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/html/page620.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/index_motif.gif"></A> <P><ADDRESS>
<img src="bruno.gif" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/icons/bruno.gif" alt="Bruno" align=right>
<a href="javascript:if(confirm('http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/copyright.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/copyright.html'" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/copyright.html">Copyright &#169; 1997</a> by <a href="javascript:if(confirm('http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/signature.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/signature.html'" tppabs="http://dictator.uwaterloo.ca/Bruno.Preiss/books/opus4/signature.html">Bruno R. Preiss, P.Eng.</a>  All rights reserved.

</ADDRESS>
</BODY>
</HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三区四区| 国产精品久久久久久久午夜片| 91精品蜜臀在线一区尤物| 91麻豆精品国产91久久久| 国产在线视视频有精品| 国产精品夜夜嗨| 成人高清伦理免费影院在线观看| 色综合欧美在线视频区| 337p亚洲精品色噜噜| 国产日韩精品一区二区浪潮av| 蜜臀精品一区二区三区在线观看| 欧美巨大另类极品videosbest | 亚洲婷婷在线视频| 亚洲色图欧洲色图| 久久久精品人体av艺术| 欧美韩国一区二区| 欧美乱妇一区二区三区不卡视频| 91 com成人网| 国产日韩欧美a| 亚洲一级二级三级在线免费观看| 免费的国产精品| 在线视频国产一区| jlzzjlzz亚洲女人18| 亚洲愉拍自拍另类高清精品| 亚洲国产日韩a在线播放性色| 懂色av一区二区三区蜜臀| 在线观看日韩电影| 久久精品亚洲精品国产欧美kt∨| 一区二区三区精品视频在线| 久久se这里有精品| 在线亚洲欧美专区二区| 久久久国产午夜精品| 亚洲高清在线视频| 色综合久久88色综合天天| 91精品国产综合久久久久久| 亚洲美女视频在线观看| 午夜激情一区二区三区| 欧美大片在线观看一区二区| 91麻豆自制传媒国产之光| 天堂va蜜桃一区二区三区| 国产无一区二区| 岛国精品在线播放| 成人一区二区三区在线观看| 欧美精品第一页| 欧美精品一区二区在线播放| 亚洲国产精品人人做人人爽| 99精品欧美一区二区蜜桃免费| 亚洲视频狠狠干| 国产日韩欧美高清在线| 国产剧情在线观看一区二区| 91麻豆自制传媒国产之光| 国产午夜亚洲精品不卡| 蜜桃久久精品一区二区| 欧美午夜在线一二页| 最近中文字幕一区二区三区| 国产精品小仙女| 精品卡一卡二卡三卡四在线| 欧美一区午夜精品| 五月激情丁香一区二区三区| 欧美乱妇15p| 美女精品自拍一二三四| 91精品国产91热久久久做人人 | 欧美高清视频一二三区| 亚洲一区二区视频在线观看| 国产午夜精品一区二区三区嫩草| 久久久久9999亚洲精品| 国产一区二区三区美女| 欧美美女一区二区三区| 性久久久久久久久| 欧美丝袜丝nylons| 亚洲一区二区三区视频在线播放| 91麻豆精品在线观看| 91麻豆国产自产在线观看| 国产精品美女一区二区| 成人高清在线视频| 国产精品久久久久久久裸模| 成人午夜免费视频| 中文字幕亚洲精品在线观看| 97精品超碰一区二区三区| 综合久久久久久| 色哟哟日韩精品| 亚洲一区二区三区四区在线观看| 欧美在线制服丝袜| 午夜久久久久久| 欧美一二三四在线| 国内精品写真在线观看| 日韩精品乱码免费| 亚洲网友自拍偷拍| 欧美精品在线一区二区三区| 视频一区在线视频| 欧美丰满嫩嫩电影| 久久精品国产久精国产| 精品美女在线播放| 成人性生交大片免费| 国产偷国产偷亚洲高清人白洁| 欧美四级电影网| 欧美性猛交一区二区三区精品| 91成人在线观看喷潮| 日韩精品亚洲一区| 亚洲免费在线电影| 久久久久久电影| 欧美美女网站色| 精品视频在线免费观看| 一本到不卡免费一区二区| 国产不卡视频在线播放| 丁香另类激情小说| 久久综合99re88久久爱| 亚洲一区av在线| 日韩一区二区精品葵司在线 | 色婷婷亚洲精品| 久草这里只有精品视频| 一区二区久久久久久| 综合色中文字幕| 亚洲免费在线观看| 亚洲影视资源网| 水蜜桃久久夜色精品一区的特点| 国产精品乱人伦| 亚洲免费观看高清| 亚洲制服丝袜一区| 亚洲a一区二区| 亚洲成人黄色小说| 日本视频免费一区| 毛片av一区二区| 国产精品正在播放| 成人高清免费在线播放| 91麻豆视频网站| 在线观看www91| 日韩一区二区三区免费看 | 日韩视频一区二区| 中文字幕一区二区三区乱码在线 | 日韩欧美亚洲国产另类| 97se狠狠狠综合亚洲狠狠| av男人天堂一区| 欧美老年两性高潮| 一区二区在线看| 6080yy午夜一二三区久久| 国产美女精品人人做人人爽| 精品久久久久久久久久久久久久久久久| 99免费精品视频| 久久97超碰色| 亚洲成人黄色小说| 亚洲天堂2014| 久久众筹精品私拍模特| 欧美日韩精品一区二区天天拍小说| 国产成人午夜精品5599| 日韩二区三区在线观看| 国产精品乱码一区二三区小蝌蚪| 亚洲国产精品自拍| 国产成人亚洲综合色影视| 欧美在线999| 国产精品免费aⅴ片在线观看| 中文字幕一区二区三区不卡| 亚洲午夜三级在线| 东方aⅴ免费观看久久av| 在线免费观看不卡av| 国产人久久人人人人爽| 国内成人免费视频| 亚洲线精品一区二区三区八戒| 欧美成人性福生活免费看| 日韩欧美在线1卡| 色诱视频网站一区| 东方aⅴ免费观看久久av| 国产一区亚洲一区| 肉色丝袜一区二区| 91精品国产欧美一区二区18 | 成人黄色a**站在线观看| 美国精品在线观看| 亚洲gay无套男同| 亚洲综合男人的天堂| 亚洲欧美一区二区在线观看| 欧美国产成人精品| 久久精品亚洲国产奇米99| 精品国产伦一区二区三区观看方式| 欧美高清性hdvideosex| 欧美日韩电影在线播放| 欧美三级日韩三级国产三级| 91黄色免费版| 欧美最猛黑人xxxxx猛交| 日本久久一区二区| 日本精品视频一区二区| 色婷婷精品大在线视频| 色综合天天综合网天天狠天天| 99久久精品免费| 99国产精品国产精品久久| 成人免费观看视频| 成人激情图片网| av日韩在线网站| 日本道免费精品一区二区三区| 99r国产精品| 91久久精品网| 欧美日韩另类一区| 制服.丝袜.亚洲.中文.综合| 宅男在线国产精品| 日韩欧美国产电影| 久久嫩草精品久久久久| 日韩午夜电影av| 日本丶国产丶欧美色综合| 日韩激情一二三区| 日本在线不卡视频| 中文字幕亚洲综合久久菠萝蜜|