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

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

?? complexity.html

?? STL文檔
?? 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一区二区三区免费野_久草精品视频
国产乱淫av一区二区三区| 成人免费观看视频| 国产精品国产a级| 欧美精品自拍偷拍动漫精品| 狠狠色综合日日| 亚洲国产精品久久久久婷婷884| 久久亚区不卡日本| 欧美疯狂做受xxxx富婆| 91在线高清观看| 国产成人鲁色资源国产91色综| 亚洲18色成人| 最新欧美精品一区二区三区| 精品国产精品一区二区夜夜嗨| 欧美制服丝袜第一页| 99免费精品视频| 国产成人亚洲精品青草天美| 日韩av一二三| 亚洲国产精品自拍| 依依成人精品视频| 中文字幕一区不卡| 中文字幕av不卡| 2021国产精品久久精品| 欧美一级二级在线观看| 精品视频资源站| 色菇凉天天综合网| 91玉足脚交白嫩脚丫在线播放| 国产精品亚洲成人| 精品制服美女久久| 精品一区二区在线观看| 麻豆精品一区二区| 青青草成人在线观看| 亚洲国产视频a| 午夜精品爽啪视频| 亚洲成人精品一区二区| 亚洲成人av在线电影| 午夜私人影院久久久久| 亚洲国产美女搞黄色| 一区二区高清免费观看影视大全| 樱花草国产18久久久久| 亚洲伊人色欲综合网| 亚洲午夜精品在线| 亚洲成人黄色小说| 婷婷综合五月天| 国产成人a级片| 国产麻豆精品一区二区| 久草热8精品视频在线观看| 国产在线看一区| 国产又黄又大久久| 岛国av在线一区| 色综合av在线| 欧美精品vⅰdeose4hd| 日韩欧美一级二级三级| 久久婷婷色综合| 国产清纯在线一区二区www| 亚洲国产岛国毛片在线| 亚洲卡通欧美制服中文| 亚洲国产精品人人做人人爽| 美女一区二区三区| 国产精品一色哟哟哟| youjizz久久| 欧美亚洲综合色| 日韩欧美中文字幕一区| 久久日一线二线三线suv| 国产精品女同一区二区三区| 1024亚洲合集| 图片区小说区区亚洲影院| 蜜臀99久久精品久久久久久软件| 国产精品亚洲午夜一区二区三区| 91在线观看污| 91精品国产免费| 久久综合av免费| 亚洲六月丁香色婷婷综合久久| 日韩 欧美一区二区三区| 国产精品自拍毛片| 91视频国产资源| 欧美一级在线观看| 国产精品乱子久久久久| 亚洲国产三级在线| 国产精品亚洲视频| 欧美区一区二区三区| 欧美v国产在线一区二区三区| 国产女同互慰高潮91漫画| 亚洲一级在线观看| 国产成人综合精品三级| 色综合色狠狠天天综合色| 日韩欧美中文一区二区| 国产精品美女久久久久高潮| 五月婷婷久久丁香| 国产不卡视频一区| 欧美日韩午夜在线| 欧美国产丝袜视频| 日本女优在线视频一区二区| jvid福利写真一区二区三区| 欧美一级电影网站| 一区二区三区欧美激情| 国产自产v一区二区三区c| 欧美午夜片在线看| 国产欧美日韩在线观看| 欧美aaaaa成人免费观看视频| 不卡的av网站| 精品国产伦一区二区三区免费| 亚洲婷婷综合色高清在线| 韩国精品主播一区二区在线观看 | 国产视频一区二区在线| 午夜视频在线观看一区二区三区| 成人在线视频首页| 精品国产乱码久久久久久影片| 亚洲愉拍自拍另类高清精品| 国产麻豆精品一区二区| 在线91免费看| 亚洲夂夂婷婷色拍ww47| 成人av免费在线| 精品乱人伦一区二区三区| 天天av天天翘天天综合网 | 亚洲精品乱码久久久久| 国产成人精品在线看| 精品久久久久av影院| 婷婷综合另类小说色区| 欧美在线视频你懂得| 中文字幕一区二区三区不卡| 国产精品亚洲专一区二区三区 | ...xxx性欧美| 懂色av一区二区三区蜜臀| 日韩欧美国产一区在线观看| 偷偷要91色婷婷| 欧美日韩综合不卡| 一区二区三区av电影| 97久久人人超碰| 中文字幕一区二区三区在线不卡| 豆国产96在线|亚洲| 久久久不卡网国产精品二区| 久久99久久精品| 精品乱人伦小说| 黄一区二区三区| 久久蜜桃av一区二区天堂| 国产传媒久久文化传媒| 久久久久久久精| 国产成人综合在线播放| 欧美国产成人精品| 成人性生交大片免费看中文| 国产精品三级电影| 成人免费毛片app| 亚洲视频免费在线| 在线观看av一区| 无吗不卡中文字幕| 日韩欧美国产一区二区在线播放 | 国产91精品入口| av成人动漫在线观看| 国产91综合一区在线观看| 国产精品69久久久久水密桃| 天天av天天翘天天综合网色鬼国产| 日本大香伊一区二区三区| 亚洲卡通欧美制服中文| 欧美少妇性性性| 久久国产综合精品| 久久综合丝袜日本网| 成人精品一区二区三区中文字幕| 亚洲欧洲日韩综合一区二区| 在线观看一区二区精品视频| 国产日韩成人精品| 欧美日韩mp4| 国产宾馆实践打屁股91| 午夜精品福利一区二区蜜股av| 国产午夜一区二区三区| 欧美网站大全在线观看| 懂色av一区二区三区免费看| 青草国产精品久久久久久| 亚洲欧美综合色| 精品国产99国产精品| 欧美最猛性xxxxx直播| 成人激情动漫在线观看| 石原莉奈在线亚洲二区| 国产精品高潮久久久久无| 日韩精品一区二区三区在线| 91免费精品国自产拍在线不卡| 国内成人精品2018免费看| 亚洲国产成人高清精品| 国产精品久久久久久久蜜臀| 欧美xxxxx牲另类人与| 欧美亚洲免费在线一区| 成人福利在线看| 极品少妇一区二区三区精品视频 | 国产清纯白嫩初高生在线观看91| 91精品国产色综合久久不卡蜜臀| 99精品久久久久久| 国产高清一区日本| 精品中文字幕一区二区小辣椒| 亚洲一区二区三区在线播放| 中文字幕一区二区三区不卡在线 | 日本一区二区三级电影在线观看| 日韩一区二区三区高清免费看看| 欧美在线观看视频一区二区三区 | 久久久美女毛片| 1024精品合集| 国产精品久久三区| 欧美国产97人人爽人人喊| 久久久精品免费观看| 精品国产91久久久久久久妲己| 欧美日韩视频在线第一区| 91黄色激情网站|