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

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

?? complexity.html

?? STL_doc
?? HTML
字號:
<!DOCTYPE HTML PUBLIC "-//Netscape Comm. Corp.//DTD HTML//EN"><HTML><HEAD>    <!-- SGI_COMMENT COSMOCREATE -->    <!-- SGI_COMMENT VERSION NUMBER="1.0" -->    <TITLE> STL Complexity Specifications </TITLE></HEAD><BODY><IMG SRC="CorpID.gif"      ALT="SGI" HEIGHT="43" WIDTH="151"> <!--end header--><H1>STL Complexity Specifications</H1><P>STL container, algorithm, and concept specifications include asymptotic complexity specifications. For example, iterators are required to take constant time, that is the time required by an iterator operation should be no more than a fixed constant, independent of the size of the container to which it refers. </P><P>Clearly programs will still function if a program component ignores the complexity specifications. Nonetheless, these specifications are an important part of the interface between STL components and code that uses them. If they are ignored, the performance of the resulting program will often render it useless. </P><P>As an example, consider the STL <TT><AHREF="Vector.html">vector</A></TT> container. Ignoring the complexityspecification, it is possible to implement <TT>vector</TT> using thesame underlying data structure as <TT><AHREF="List.html">list</A></TT>, <I>i.e.</I> as a doubly linkedlist. But for a <TT>vector</TT> of length 10,000, this would probablyslow down an average computation of <TT>v[i]</TT> by something like afactor of 5,000. For a program that requires many <TT>vector</TT>accesses, such as a typical numerical computation, this is likely tochange an execution time of minutes to days. </P><P>This does not preclude the use of STL algorithms in conjunction with containers or iterators that do not meet the standard complexity specifications. This is occasionally quite useful, especially if the code is either not performance critical, or other requirements on the container make the performance specifications unrealizable. But this has two potential problems. First, the algorithm may no longer be the right one, or even a reasonable one, for the problem. A different algorithm may be better tailored to actual relative costs of the container operations. Second, the algorithm is, of course, unlikely to satisfy its specified complexity constraint. </P><P>The complexity specifications in STL are, of necessity, an oversimplification. A full specification would describe exactly how the running time of an operation varies with that of the operations it invokes. The result would be rather unmanageable for the user, who would have to be keep track of large amounts of irrelevent detail. It would be overly constraining on the implementor, since overall improvements on the existing algorithms may not satisfy such detailed constraints. </P><P>Concept specifications (<I>e.g.</I> <B><AHREF="ForwardIterator.html">Forward Iterator</A></B> or <B><AHREF="Container.html">Container</A></B>) specify complexityrequirements that should be met by all instances of the concept. Thisis the minimum behavior required by operations (<I>e.g.</I> <TT><AHREF="sort.html">sort</A></TT>) parameterized with respect to theconcept. Any specific instance (<I>e.g.</I> <TT><AHREF="Vector.html">vector</A></TT>) is likely to perform better in atleast some cases. </P><P>It is difficult to specify precisely when an algorithm satisfies a performance constraint. Does copying a <TT>vector</TT> on a 16-bit embedded processor take constant time? After all, the size of the <TT><A HREF="Vector.html">vector</A></TT> is limited to some value less than 65,536. Thus the number of memory operations involved in the copy operation is certainly bounded by a constant. It is even conceivable that the worst case <TT>vector</TT>copy time on this processor may be less than the worst-case time for a single memory access on a machine with paged virtual memory. Nonetheless, it would be intuitively wrong to describe a <TT>vector</TT>copy or a <TT>list</TT> traversal as being a constant time operation. Even on this machine, a <TT>vector</TT> implemented as a list is unlikely to yield satisfactory performance. (Of course, so would an implementation that looped for a second for every <TT>vector</TT> access, although that would clearly run in constant time. The point here is to communicate the proper intent between implementor and user, not to guard against malicious or silly implementations.) </P><P>Fundamentally, it is difficult to define the notion of asymptotic algorithm complexity precisely for real computer hardware instead of an abstract machine model. Thus we settle for the following guidelines: </P><OL>    <LI>    For an algorithm <I>A</I> to have running time O(<I>f(n)</I>),     there must be a corresponding algorithm <I>A'</I> that is correct     on machines with arbitrarily long pointer and <TT>size_t</TT>     types, such that <I>A</I> and <I>A'</I> perform essentially the     same sequence of operations on the actual hardware. (In simple cases <I>A</I>     and <I>A'</I> will be the same. In other cases <I>A</I> may have     been simplified with the knowledge that adresses are bounded.) For     inputs of sufficiently large size <I>n</I>, <I>A'</I> must take at     most time <I>Cf(n)</I>, where <I>C</I> is a constant, independent     of both <I>n</I> and the address size. (Pointer, <TT>size_t</TT>,     and <TT>ptrdiff_t</TT> operations are presumed to take constant     time independent of their size.)     <LI>    All container or iterator complexity specifications refer to amortized     complexity. An individual operation may take longer than specified. But     any sufficiently long sequence of operations on the same container or     iterator will take at most as long as the corresponding sum of the     specified operation costs.     <LI>    Algorithms specify either worst-case or average case performance, and     identify which. Unless otherwise stated, averages assume that container     elements are chosen from a finite type with more possible values than     the size of the container, and that container elements are     independently uniformly distributed.     <LI>    A complexity specification for an operation <I>f</I> assumes that     operations invoked by <I>f</I> require at most the specified     runtime. But algorithms generally remain appropriate if the invoked     operations are no more than a logarithmic factor slower than specified     in the expected case.     <LI>    If operations are more expensive than assumed by a function <I>F</I>     in the current STL, then <I>F</I> will slow down at most in     proportion to the added cost. Any future operations that fail to     satisfy this property will make that explicit.     <P>    To make this precise, assume <I>F</I> is specified to use time <I>f(m)</I>     for input of size <I>m</I>. <I>F</I> uses operations <I>G</I><SUB><I>k</I></sub>,     with specified running times <I>g</I><SUB><I>k</I></sub><I>(n)</I>     on input size <I>n</I>. If <I>F</I> is used in a context in which     each <I>G</I><SUB><I>k</I></sub> is slower than expected by at most     a factor <I>h(n)</I>, then <I>F</I> slows down by at most a factor <I>h(m)</I>.     This holds because none of the current algorithms ever apply the     operations <I>G</I><SUB><I>k</I></sub> to inputs significantly     larger than <I>m</I>. </P></OL><!--start footer--> <HR SIZE="6"><A href="http://www.sgi.com/"><IMG SRC="surf.gif" HEIGHT="54" WIDTH="54"         ALT="[Silicon Surf]"></A><A HREF="index.html"><IMG SRC="stl_home.gif"         HEIGHT="54" WIDTH="54" ALT="[STL Home]"></A><BR><FONT SIZE="-2"><A href="http://www.sgi.com/Misc/sgi_info.html" TARGET="_top">Copyright &copy; 1999 Silicon Graphics, Inc.</A> All Rights Reserved.</FONT><FONT SIZE="-3"><a href="http://www.sgi.com/Misc/external.list.html" TARGET="_top">TrademarkInformation</A></FONT><P></BODY></HTML> 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区电影| 综合精品久久久| 色综合久久九月婷婷色综合| 久久精品久久综合| 亚洲伊人伊色伊影伊综合网| 国产精品素人一区二区| 91精品国产一区二区| 在线免费一区三区| av亚洲产国偷v产偷v自拍| 久色婷婷小香蕉久久| 亚洲超碰97人人做人人爱| 综合网在线视频| 国产网站一区二区三区| 欧美大片一区二区| 日韩一区二区在线观看视频 | 亚洲色图欧洲色图| 精品国内片67194| 欧美精品一卡二卡| 在线观看一区二区精品视频| 成人动漫视频在线| 国产aⅴ精品一区二区三区色成熟| 天堂在线一区二区| 亚洲一区二区三区在线播放| 亚洲日穴在线视频| 国产精品网站在线播放| 亚洲国产精品二十页| www欧美成人18+| 日韩欧美国产电影| 日韩欧美在线不卡| 日韩欧美在线综合网| 3d动漫精品啪啪1区2区免费 | 日韩一区二区影院| 在线不卡中文字幕播放| 欧美日本高清视频在线观看| 欧美天堂亚洲电影院在线播放| 91热门视频在线观看| 色综合久久久久久久久久久| 91网上在线视频| 日本韩国欧美一区二区三区| 91免费看片在线观看| 色综合久久中文综合久久97| 在线中文字幕一区二区| 欧美三级视频在线观看| 欧美日韩精品欧美日韩精品| 欧美二区三区91| 欧美一区日韩一区| 精品免费国产一区二区三区四区| 精品福利av导航| 国产亚洲成年网址在线观看| 中文一区二区完整视频在线观看| 国产精品久久久久一区二区三区| 国产精品视频yy9299一区| 亚洲天堂av老司机| 亚洲五月六月丁香激情| 石原莉奈在线亚洲二区| 国产一区二区视频在线播放| 国产成人综合网| 日本韩国欧美在线| 欧美一区二区三区视频在线观看 | 一级精品视频在线观看宜春院| 夜夜嗨av一区二区三区四季av | 久久成人免费日本黄色| 国产v综合v亚洲欧| 色香色香欲天天天影视综合网| 欧美日韩一区精品| 欧美大片一区二区| 中文字幕成人av| 亚洲午夜日本在线观看| 日本aⅴ免费视频一区二区三区 | 亚洲综合一区二区三区| 美腿丝袜亚洲三区| a4yy欧美一区二区三区| 91麻豆精品国产91久久久使用方法| 日韩精品一区二区三区四区| 中文字幕的久久| 日韩国产欧美三级| 国产福利精品一区| 在线亚洲一区观看| 久久综合九色综合97_久久久| 中文字幕一区免费在线观看| 天使萌一区二区三区免费观看| 狠狠色丁香婷婷综合久久片| 色综合天天做天天爱| 欧美电影免费提供在线观看| 亚洲欧美日韩国产综合在线| 久久国产精品72免费观看| 色婷婷av一区| 2020日本不卡一区二区视频| 一个色在线综合| 国产99精品视频| 欧美一级片在线| 亚洲欧美二区三区| 国产成人在线观看免费网站| 欧美猛男男办公室激情| 综合av第一页| 国产自产高清不卡| 91精品啪在线观看国产60岁| 成人欧美一区二区三区白人| 黑人精品欧美一区二区蜜桃| 欧美亚洲国产一区在线观看网站| 久久无码av三级| 日本成人在线电影网| 日本精品视频一区二区三区| 中文在线资源观看网站视频免费不卡| 午夜a成v人精品| 在线视频你懂得一区| 国产精品久久久久久久久果冻传媒 | 亚洲国产精品ⅴa在线观看| 蜜桃在线一区二区三区| 欧美性三三影院| 成人欧美一区二区三区白人| 风间由美性色一区二区三区| 久久女同互慰一区二区三区| 欧美aaaaa成人免费观看视频| 在线一区二区三区做爰视频网站| 日韩一区日韩二区| 成人深夜在线观看| 国产欧美日韩三级| 国产一区二区精品久久99| 精品久久久久久久久久久院品网| 无码av免费一区二区三区试看| 欧洲精品一区二区| 亚洲午夜久久久久久久久久久| 99久久99精品久久久久久| 国产精品久久久久久久午夜片| 国产激情精品久久久第一区二区 | 国产亚洲一二三区| 久久99精品国产麻豆不卡| 日韩一级大片在线观看| 日本va欧美va瓶| 日韩午夜激情电影| 狠狠色2019综合网| 久久精品视频免费| 高清国产一区二区| 国产精品人妖ts系列视频 | 日韩三级高清在线| 免费成人深夜小野草| 日韩一级免费观看| 久久电影网电视剧免费观看| 久久众筹精品私拍模特| 国产美女视频一区| 国产丝袜在线精品| 91在线你懂得| 夜夜爽夜夜爽精品视频| 欧美日韩国产一二三| 蜜臀久久久99精品久久久久久| 日韩一区二区在线看| 国产剧情一区二区三区| 亚洲国产精品黑人久久久| 97久久人人超碰| 亚洲国产成人91porn| 日韩视频一区二区三区在线播放 | 欧美四级电影在线观看| 午夜a成v人精品| 精品福利视频一区二区三区| 国产成人免费在线视频| 亚洲男同1069视频| 日韩一区二区三区视频在线观看| 韩国精品主播一区二区在线观看 | 久久综合九色综合97婷婷女人 | 国产一区二区三区免费播放| 日本一二三不卡| 欧美三级蜜桃2在线观看| 一本久久精品一区二区| 天堂精品中文字幕在线| 久久久另类综合| 在线一区二区视频| 久久精品国产精品亚洲精品| 国产日韩精品一区二区三区| 在线观看一区二区视频| 精品在线亚洲视频| 亚洲另类在线一区| 欧美成人艳星乳罩| 一本色道综合亚洲| 国产一区在线视频| 久久丁香综合五月国产三级网站| 中文字幕中文在线不卡住| 欧美精品1区2区| 99久久精品免费看| 久久国产精品99精品国产 | 国产精品久久久久久久久动漫| 欧美日韩三级一区二区| 国产成人综合在线| 日韩成人午夜电影| 亚洲精品一卡二卡| 久久精品水蜜桃av综合天堂| 精品视频全国免费看| 丰满放荡岳乱妇91ww| 免费观看成人av| 一区二区三区久久久| 国产欧美日韩另类视频免费观看| 欧美日韩在线播放| 91美女在线观看| 国产成人小视频| 蜜乳av一区二区三区| 亚洲一区二区五区| 亚洲三级理论片| 欧美国产一区视频在线观看| 欧美成人精品二区三区99精品| 日本精品一区二区三区高清 |