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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? page344.html

?? Data Structures And Algorithms With Object-Oriented Design Patterns In Python (2003) source code and
?? HTML
字號:
<HTML><HEAD><TITLE>Inserting Items into a B-Tree</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="tex2html5154" HREF="page345.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html5152" HREF="page340.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html5146" HREF="page343.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html5156" HREF="page611.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="../icons/index_motif.gif"></A> <BR><HR><H2><A NAME="SECTION0010720000000000000000">Inserting Items into a B-Tree</A></H2><P>The algorithm for insertion into a B-Tree beginsas do all the other search tree insertion algorithms:To insert item <I>x</I>,we begin at the root and conduct a search for it.Assuming the item is not already in the tree,the unsuccessful search will terminate at a leaf node.This is the point in the tree at which the <I>x</I> is inserted.<P>If the leaf node has fewer than <I>M</I>-1 keys in it,we simply insert the item in the leaf node and we are done.For example, consider a leaf node with <I>n</I><I>&lt;</I><I>M</I> subtrees and <I>n</I>-1 keys of the form<P> <IMG WIDTH=385 HEIGHT=16 ALIGN=BOTTOM ALT="displaymath65041" SRC="img1338.gif"  ><P>For every new key inserted in the node,a new subtree is required too.In this case because <I>T</I> is a leaf,all its subtrees are empty trees.Therefore, when we insert item <I>x</I>,we really insert the pair of items  <IMG WIDTH=35 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65061" SRC="img1339.gif"  >.Suppose the key to be inserted falls between  <IMG WIDTH=12 HEIGHT=22 ALIGN=MIDDLE ALT="tex2html_wrap_inline63737" SRC="img1177.gif"  > and  <IMG WIDTH=26 HEIGHT=23 ALIGN=MIDDLE ALT="tex2html_wrap_inline64781" SRC="img1304.gif"  >,i.e.,  <IMG WIDTH=92 HEIGHT=23 ALIGN=MIDDLE ALT="tex2html_wrap_inline63803" SRC="img1182.gif"  >.When we insert the pair  <IMG WIDTH=35 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65061" SRC="img1339.gif"  > into <I>T</I>we get the new leaf <I>T</I>' given by<P> <IMG WIDTH=475 HEIGHT=17 ALIGN=BOTTOM ALT="displaymath65042" SRC="img1340.gif"  ><P><P>What happens when the leaf is full?That is, suppose we wish to insert the pair, <IMG WIDTH=35 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65061" SRC="img1339.gif"  > into a node <I>T</I> which already has <I>M</I>-1 keys.Inserting the pair in its correct position gives a result of the form<P> <IMG WIDTH=376 HEIGHT=17 ALIGN=BOTTOM ALT="displaymath65043" SRC="img1341.gif"  ><P>However, this is not a valid node in a B-tree of order <I>M</I>because it has <I>M</I>+1 subtrees and <I>M</I> keys.The solution is to split node <I>T</I>' in half as follows<P> <IMG WIDTH=500 HEIGHT=42 ALIGN=BOTTOM ALT="eqnarray21302" SRC="img1342.gif"  ><P>Note,  <IMG WIDTH=18 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65089" SRC="img1343.gif"  > is a valid B-tree node because it contains <IMG WIDTH=41 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline64977" SRC="img1328.gif"  > subtrees and  <IMG WIDTH=71 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65005" SRC="img1331.gif"  > keys.Similarly,  <IMG WIDTH=18 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65095" SRC="img1344.gif"  > is a valid B-tree node because it contains <IMG WIDTH=83 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65097" SRC="img1345.gif"  > subtrees and  <IMG WIDTH=111 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65099" SRC="img1346.gif"  > keys.Note that there is still a key left over,namely  <IMG WIDTH=43 HEIGHT=22 ALIGN=MIDDLE ALT="tex2html_wrap_inline65101" SRC="img1347.gif"  >.<P>There are now two cases to consider--either <I>T</I> is the root or it is not.Suppose <I>T</I> is not the root.Where we once had the single node <I>T</I>,we now have the two nodes,  <IMG WIDTH=18 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65089" SRC="img1343.gif"  > and  <IMG WIDTH=18 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65095" SRC="img1344.gif"  >,and the left-over key,  <IMG WIDTH=43 HEIGHT=22 ALIGN=MIDDLE ALT="tex2html_wrap_inline65101" SRC="img1347.gif"  >.This situation is resolved as follows:First,  <IMG WIDTH=18 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65089" SRC="img1343.gif"  > replaces <I>T</I> in the parent of <I>T</I>.Next, we take the pair  <IMG WIDTH=83 HEIGHT=24 ALIGN=MIDDLE ALT="tex2html_wrap_inline65121" SRC="img1348.gif"  >and recursively insert it in the parent of <I>T</I>.<P>Figure&nbsp;<A HREF="page344.html#figbtree2"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> illustrates this case for a B-tree of order three.Inserting the key&nbsp;6 in the tree causes the leaf node to overflow.The leaf is split in two.The left half contains key&nbsp;5; and the right, key&nbsp;7; and key&nbsp;6 is left over.The two halves are re-attached to the parent in the appropriate placewith the left-over key between them.<P><P><A NAME="21555">&#160;</A><A NAME="figbtree2">&#160;</A> <IMG WIDTH=575 HEIGHT=502 ALIGN=BOTTOM ALT="figure21315" SRC="img1349.gif"  ><BR><STRONG>Figure:</STRONG> Inserting items into a B-tree (insert 6).<BR><P><P>If the parent node fills up,then it too is split and the two new nodes are inserted in the grandparent.This process may continue all the way up the tree to the root.What do we do when the root fills up?When the root fills, it is also split.However, since there is no parent into which to insert the two new children,a new root is inserted above the old root.The new root will contain exactly two subtrees and one key,as allowed by Definition&nbsp;<A HREF="page340.html#defnbtree"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.<P>Figure&nbsp;<A HREF="page344.html#figbtree3"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A> illustrates this case for a B-tree of order three.Inserting the key&nbsp;3 in the tree causes the leaf node to overflow.Splitting the leaf and reattaching it causes the parent to overflow.Similarly, splitting the parent and reattaching it causes the grandparentto overflow but the grandparent is the root.The root is split and a new root is added above it.<P><P><A NAME="21996">&#160;</A><A NAME="figbtree3">&#160;</A> <IMG WIDTH=575 HEIGHT=833 ALIGN=BOTTOM ALT="figure21560" SRC="img1350.gif"  ><BR><STRONG>Figure:</STRONG> Inserting items into a B-tree (insert 3).<BR><P><P>Notice that the height of the B-tree only increases when the root node splits.Furthermore, when the root node splits,the two halves are both attached under the new root.Therefore, the external nodes all remain at the same depth,as required by Definition&nbsp;<A HREF="page340.html#defnbtree"><IMG  ALIGN=BOTTOM ALT="gif" SRC="../icons/cross_ref_motif.gif"></A>.<P><BR> <HR><UL> <LI> <A NAME="tex2html5157" HREF="page345.html#SECTION0010721000000000000000">Implementation</A><LI> <A NAME="tex2html5158" HREF="page346.html#SECTION0010722000000000000000">Running Time Analysis</A></UL><HR><A NAME="tex2html5154" HREF="page345.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="../icons/next_motif.gif"></A> <A NAME="tex2html5152" HREF="page340.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="../icons/up_motif.gif"></A> <A NAME="tex2html5146" HREF="page343.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="../icons/previous_motif.gif"></A>  <A NAME="tex2html5156" 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 + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国偷自产一区二区三区观看| 久久久亚洲国产美女国产盗摄 | 日韩欧美一二区| 国产欧美中文在线| 免费av网站大全久久| 色综合天天天天做夜夜夜夜做| 欧美一区二区在线免费观看| 亚洲男人的天堂在线aⅴ视频| 国产一级精品在线| 欧美日韩国产精品成人| 成人欧美一区二区三区| 国产在线国偷精品产拍免费yy| 欧美久久久久久久久| 一区二区免费在线| 岛国精品一区二区| 久久久久久久久97黄色工厂| 蜜桃在线一区二区三区| 日韩欧美久久一区| 视频一区视频二区中文| 99精品欧美一区二区三区小说| 久久蜜桃av一区二区天堂 | 亚洲一区在线观看网站| 成人午夜电影久久影院| 久久人人爽爽爽人久久久| 欧美a一区二区| 7878成人国产在线观看| 亚洲妇女屁股眼交7| 欧美亚洲丝袜传媒另类| 一区二区日韩av| 色综合天天综合色综合av| 中文字幕在线不卡一区| 成人app网站| 国产精品日韩成人| 成人一区在线观看| 国产精品私人自拍| 97久久精品人人爽人人爽蜜臀| 国产精品欧美精品| 99久久精品国产网站| 亚洲欧美视频在线观看| 欧美性大战xxxxx久久久| 亚洲电影一级黄| 欧美一区二区三区啪啪| 精品一区二区三区视频| 国产亚洲短视频| 成人黄色网址在线观看| 亚洲乱码一区二区三区在线观看| 91在线porny国产在线看| 一区二区免费在线| 日韩午夜在线观看视频| 国产一区二区久久| 亚洲蜜臀av乱码久久精品蜜桃| 在线精品国精品国产尤物884a| 日韩国产高清在线| 国产喂奶挤奶一区二区三区| av男人天堂一区| 亚洲chinese男男1069| 欧美sm美女调教| av一区二区三区| 天天操天天综合网| 久久人人97超碰com| 色综合一区二区| 麻豆高清免费国产一区| 中文字幕一区av| 欧美三级资源在线| 国产激情91久久精品导航| 亚洲色图在线播放| 日韩三级视频中文字幕| 成人精品视频.| 日本亚洲三级在线| 国产精品女人毛片| 欧美大白屁股肥臀xxxxxx| 成人免费精品视频| 蜜臀av一区二区| 亚洲欧美日韩国产综合在线| 精品国产人成亚洲区| 91视视频在线直接观看在线看网页在线看| 午夜精品久久久| 国产精品欧美精品| 欧美精品一区二区精品网| 欧美在线免费视屏| 成人av在线影院| 另类人妖一区二区av| 一区二区三区自拍| 日本一区二区免费在线| 欧美一级国产精品| 欧美综合天天夜夜久久| 岛国精品在线观看| 国产一区二区三区高清播放| 亚洲国产毛片aaaaa无费看| 国产精品网曝门| 精品福利一二区| 欧美日本视频在线| 在线观看欧美日本| 99re6这里只有精品视频在线观看| 狠狠色伊人亚洲综合成人| 首页综合国产亚洲丝袜| 亚洲综合自拍偷拍| 中文字幕一区二区在线播放| 精品国产免费人成电影在线观看四季| 欧美军同video69gay| 欧美性xxxxxx少妇| 色哟哟一区二区三区| 91网站最新地址| 97久久精品人人澡人人爽| 成人美女在线视频| 成人激情动漫在线观看| 国产**成人网毛片九色| 国产精品亚洲专一区二区三区 | 亚洲高清视频的网址| 亚洲欧美韩国综合色| 一区在线观看视频| 亚洲人成影院在线观看| 亚洲欧洲日产国码二区| 中文字幕一区二区三区在线观看| 国产嫩草影院久久久久| 欧美国产97人人爽人人喊| 久久精品一区二区三区不卡| 国产三级欧美三级| 中国色在线观看另类| 中文字幕制服丝袜一区二区三区| 国产精品久久久久精k8| 亚洲精品免费在线观看| 一区二区三区在线视频观看58| 亚洲激情五月婷婷| 亚洲制服欧美中文字幕中文字幕| 亚洲成a天堂v人片| 美女视频一区在线观看| 国产精品亚洲一区二区三区妖精| 成人精品高清在线| 91麻豆国产福利在线观看| 色94色欧美sute亚洲线路一ni| 欧美日韩一区在线观看| 欧美一区二区三区精品| 久久久精品综合| 中文字幕亚洲一区二区av在线| 亚洲综合成人在线视频| 免费在线欧美视频| 国产成人精品在线看| 在线中文字幕一区二区| 91精品国产综合久久久久久久| 久久众筹精品私拍模特| 亚洲三级在线播放| 青青青伊人色综合久久| 从欧美一区二区三区| 欧美日韩一区三区| 精品国产麻豆免费人成网站| 亚洲丝袜制服诱惑| 美国十次综合导航| 99国产精品视频免费观看| 69久久99精品久久久久婷婷 | 99久久免费视频.com| 欧美日韩一区二区欧美激情| 久久蜜臀精品av| 一区二区欧美精品| 国v精品久久久网| 91精品国产色综合久久| 国产精品二区一区二区aⅴ污介绍| 亚洲一二三四久久| 国产成+人+日韩+欧美+亚洲| 欧美色成人综合| 国产精品网曝门| 久久精品国产77777蜜臀| 色网站国产精品| 久久久国产综合精品女国产盗摄| 亚洲午夜av在线| www.色综合.com| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲高清一区二区三区| 成人aa视频在线观看| 精品国产三级电影在线观看| 亚洲国产精品久久艾草纯爱| 成人免费看黄yyy456| 精品久久久久久综合日本欧美| 亚洲国产成人av| 一本色道久久加勒比精品| 国产欧美一区二区三区鸳鸯浴 | 亚洲一区在线观看免费观看电影高清 | 日韩一区有码在线| 国产精品一区免费视频| 6080亚洲精品一区二区| 亚洲综合一区二区| 色偷偷88欧美精品久久久| 国产日韩亚洲欧美综合| 捆绑调教美女网站视频一区| 欧美女孩性生活视频| 一区二区在线看| 9i看片成人免费高清| 国产午夜精品一区二区三区视频| 久久成人av少妇免费| 日韩午夜av电影| 午夜精品一区二区三区免费视频 | www.欧美色图| 国产农村妇女精品| 国产高清不卡二三区| 国产欧美一区二区在线观看| 国产福利视频一区二区三区| 国产午夜精品理论片a级大结局| 国产综合久久久久久久久久久久| 日韩欧美国产小视频| 激情综合色播五月|