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

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

?? algorith.gml

?? 開放源碼的編譯器open watcom 1.6.0版的源代碼
?? GML
字號:
:H1.Introduction
:P.
The algorithm header (truncated to :Q.algorith:eQ. for 8.3 file name 
compatibility) contains definitions of the algorthms from chaper 25 of 
the standard.


:H2.Status
:P.
:AUTHOR date='20 Jun 2006'.P Chapin, D Cletheroe
:P.
Reviewer: Not reviewed
:P.
About two thirds of the required algorithms have been implemented. For a
list of those remaining, see the Wiki web site.

:H1.Design Details
:P.
Most of the standard algorithms are template functions that operate on
iterators to perform some common task. Each function template is quickly
addressed in the sections that follow. They are generally quite simple
and looking directly at the source may be the simplest form of
information.

:P.
A number of the algorithms come in both a form that uses
:CODE.operator<
or
:CODE.operator==
(as appropriate) and in a form that uses a predicate. The predicate form is
more general. The non-predicate form can be implemented in terms of the
predicate form by using the function objects in
:PATH.functional.
In theory implementing the non-predicate forms in terms of the predicate
forms should not entail any abstraction penalty because the compiler should
be able to optimize away any overhead due to the function objects. Some
investigation was done using Open Watcom v1.5 to find out if that was true.
In fact, the compiler was able to produce essentially identical code for
the non-predicate functions that were implemented directly as for
non-predicate functions that were implemented in terms of the predicate
functions. However, at the call site, there was some abstraction penalty:
the compiler issued a few extra instructions to manipulate the (zero sized)
function objects.

:P.
These experiments led us to conclude that the non-predicate functions
should be implemented directly for short, simple algorithms where the extra
overhead might be an issue. For the more complex algorithms, the
non-predicate forms should be implemented in terms of the corresponding
predicate forms. The extra overhead of doing so should be insignificant in
such cases and the savings in source code (as well as the improved ease of
maintanence) would make such an approach desirable.

:P.
If the compiler's ability to optimize away the function objects improves,
this matter should be revisited.

:H2.*_heap
:P.
The functions
:CODE.push_heap, pop_heap, make_heap,
and
:CODE.sort_heap
support the manipulation of a heap data structure. Currently only
versions using an explicit
:CODE.operator<
have been implemented. The versions taking a comparison object
have yet to be created. Several heap related helper functions have been
implemented in namespace
:CODE.std::_ow.
These functions are not intended for general use.

:P.
There is a compiler bug that prevents the signature of the internal
:CODE.heapify
function from compiling. This has been worked around by providing the
necessary type as an additional template parameter. See the comments in
:PATH.algorith.mh
for more information.

:H2.remove remove_if
:P.
These functions :Q.remove:eQ. the value that compares equal or the
element at which the predicate evaluates != false. Because iterators
can't be used to access the underlying container the element can't
really be removed. It may well be the container is just a bit of stack
and the iterator a pointer. These functions instead copy elements from
the right (an incremented iterator) over the top of the element that is
:Q.removed:eQ. and then return an iterator identifying the new end of
the sequence. The initial implementation just called the
:CODE.remove_copy
and
:CODE.remove_copy_if
functions described below. This would perform unnecessary copies on top
of the same object if there any values at the begining of the container
that aren't to be removed. This could cause a bit of performance hit if
the object is large and there are lots of objects that don't need to be
removed, therefore these functions were re-written to be independent of
the the
:CODE.*_copy
versions and perform a check for this condition.

:H2.remove_copy remove_copy_if
:P.
This makes a copy of the elements that don't compare equal, or when the
predictate is false, starting at the location given by Output.
It is a simple while loop over the input iterator first to last, either
just skipping the element or copying it to the output.

:H2.unique
:P.

For C++98 and C++2003 there is an open library issue regarding the behavior
of
:CODE.unique
when non-equivalence relations are used. The standard says that the
predicate should be applied in the opposite order of one's intuition. In
particular:
:CODE.pred(*i, *(i-1)).
This means the predicate compares an item with its previous item.

:P.
The resolution of the open issue suggests that non-equivalence relations
should not be premitted. In any case, the standard should apply the
predicate between an item and the next item:
:CODE.pred(*(i-1), *i).

:P.
The Open Watcom implementation follows the proposed resolution and thus
deliberately violates the standard. Most (all?) other implementations do
the same.

:H2.find_first_of
:P.
There are two versions of this, one that uses
:CODE.operator==
and one that uses a binary predicate. There is a simple nested loop to
compare each element with each element indexed by the 2nd iterator
range.

:H2.find_end
:P.
There are two versions of this, one that uses
:CODE.operator==
and one that uses a binary predicate. The main loop executes two other
loops. The first loop finds an input1 element that matches the first
input2 element. When a match is found the second loop then checks to see
if it is complete match for the subsequence. If it is, the position the
subsequence started is noted and the main loop is iterated as there may
be another match later on. Note this can't search for the substring
backwards as the iterators are ForwardIterators.

:H2.random_shuffle
:P.
The
:CODE.random_shuffle
template with two arguments has been implemented using the C library
function
:CODE.rand.
However, the 1998/2003 standard is unclear about the source of random
numbers that
:CODE.random_shuffle
should use. There is an open library issue about this with the C++
standardization group. See
http://anubis.dkuug.dk/JTC1/SC22/WG21/docs/lwg-active.html, item #395.
The proposed resolution is to allow the implementation to use
:CODE.rand
without requiring it to do so (the source of random numbers is proposed
to be implementation defined).

:P.
The problem with
:CODE.rand
in this case is that Open Watcom's implementation of
:CODE.rand
is limited to 16 bits of output even on 32 bit platforms. This means
that
:CODE.random_shuffle
will malfunction on sequences larger than 32K objects. This is a problem
that needs to be resolved. The solution, probably, will be to provide 32
bit random number generators as an option (check this: has it already
been done?)

:H2.sort
:P.
The
:CODE.sort
template is implemented using a QuickSort algorithm. This was shown to be
significantly faster (over twice as fast) as using a HeapSort based on the
heap functions in this library. This implementation of QuickSort is
recursive. Since each recursive call has private state, it is unclear if a
non-recursive version would be any faster (at the time of this writing, no
performance comparisons between recursive and non-recursive versions have
been made). Stack consumption of the recursive implementation should be
O(log(n)) on the average, which is not excessive. However, the stack
consumption would be O(n) in the worst case, which would be undesirable for
large n.

:H2.add quick descriptions of other algorithms here...
:P.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美天堂亚洲电影院在线播放| 国产欧美一区二区三区网站 | 在线免费观看日本欧美| 国产精品夫妻自拍| 91在线免费视频观看| 亚洲欧美日韩一区二区三区在线观看| 972aa.com艺术欧美| 亚洲精品欧美激情| 欧美理论电影在线| 加勒比av一区二区| 国产情人综合久久777777| 成人精品视频一区| 亚洲午夜精品久久久久久久久| 欧美高清激情brazzers| 韩国成人精品a∨在线观看| 久久久久久电影| 色综合一个色综合亚洲| 午夜久久久久久久久| 欧美电视剧在线看免费| 成人理论电影网| 亚洲午夜久久久久久久久久久 | 日本在线不卡视频一二三区| 精品国产1区二区| 成人少妇影院yyyy| 亚洲成av人片在线观看无码| 久久综合狠狠综合| 91论坛在线播放| 蜜桃精品视频在线| 综合网在线视频| 欧美一级片在线观看| 成人激情动漫在线观看| 三级一区在线视频先锋| 国产欧美一区二区三区沐欲| 欧美午夜精品免费| 国产精品一级在线| 爽好多水快深点欧美视频| 欧美国产欧美亚州国产日韩mv天天看完整 | 国产精品亚洲一区二区三区在线 | 久久99深爱久久99精品| 中文字幕一区二区三区不卡在线 | 亚洲欧洲日韩在线| 日韩欧美不卡在线观看视频| 97久久超碰国产精品| 激情伊人五月天久久综合| 亚洲天堂精品在线观看| 精品欧美一区二区久久 | 国产成人亚洲精品青草天美| 亚洲综合一区二区三区| 中文一区在线播放| 欧美v亚洲v综合ⅴ国产v| 欧美在线影院一区二区| fc2成人免费人成在线观看播放| 奇米影视一区二区三区| 一区二区三区中文字幕在线观看| 久久久久九九视频| 欧美一区二区三区免费| 欧美日韩中文一区| 91丨porny丨国产入口| 国产成人综合在线播放| 麻豆久久久久久| 日韩经典中文字幕一区| 亚洲一区在线电影| 国产精品第13页| 中文字幕成人av| 久久久亚洲午夜电影| 欧美电视剧在线观看完整版| 欧美酷刑日本凌虐凌虐| 欧美三级韩国三级日本三斤| 99re成人精品视频| 成人精品一区二区三区中文字幕| 激情深爱一区二区| 韩国一区二区三区| 国产在线视频精品一区| 精品一区二区日韩| 久久国产婷婷国产香蕉| 久久99国产精品免费| 美女一区二区视频| 麻豆91免费观看| 蜜桃精品在线观看| 国产在线一区观看| 国产九色sp调教91| 国产精品一区二区三区网站| 久久99久久精品欧美| 激情六月婷婷久久| 成人网页在线观看| 北条麻妃国产九九精品视频| youjizz久久| 91麻豆高清视频| 精品视频一区二区三区免费| 欧美高清你懂得| 欧美v日韩v国产v| 国产日韩欧美不卡| 自拍偷拍欧美激情| 亚洲国产另类av| 免费观看在线综合| 国产一区二区三区美女| 成人国产在线观看| 日本电影欧美片| 91精品黄色片免费大全| 精品美女在线观看| 国产精品久久影院| 亚洲国产一区在线观看| 美国毛片一区二区| 成人性生交大片免费看中文| 色综合久久中文字幕| 欧美日韩大陆一区二区| 精品播放一区二区| 中文字幕一区二区三区四区| 午夜影院久久久| 狠狠色综合色综合网络| 91在线视频在线| 欧美一区在线视频| 欧美经典一区二区三区| 亚洲欧美激情插| 日本不卡的三区四区五区| 高清beeg欧美| 欧美色图一区二区三区| 久久蜜桃av一区二区天堂| 亚洲日本在线a| 久久99国产精品久久99果冻传媒| 成人理论电影网| 日韩亚洲欧美综合| 国产精品第五页| 久久国产精品色婷婷| 99国产精品视频免费观看| 制服丝袜成人动漫| 亚洲图片你懂的| 美女视频第一区二区三区免费观看网站 | 91视频观看免费| 日韩欧美综合在线| 一区二区三区在线看| 狠狠色丁香九九婷婷综合五月| 色综合视频一区二区三区高清| 欧美大片在线观看一区| 一区二区三区四区国产精品| 国产毛片精品视频| 欧美久久久一区| 亚洲欧美另类综合偷拍| 国产中文字幕一区| 欧美一区二区视频在线观看2020| 最新成人av在线| 国产老女人精品毛片久久| 3d动漫精品啪啪一区二区竹菊| 亚洲天堂2016| 国产91露脸合集magnet| 欧美激情在线一区二区三区| 蜜臀va亚洲va欧美va天堂| 一本大道综合伊人精品热热| 国产农村妇女精品| 九九精品视频在线看| 91精品啪在线观看国产60岁| 亚洲欧美日韩小说| 成人黄色软件下载| 久久精品男人天堂av| 日本不卡的三区四区五区| 欧美日韩在线综合| 一区二区三区在线看| 色综合天天综合网国产成人综合天 | 91在线视频播放| 日本一二三不卡| 国产露脸91国语对白| 久久综合九色综合欧美就去吻| 日韩成人一区二区三区在线观看| 欧美性大战久久久久久久蜜臀 | 久久一区二区视频| 奇米精品一区二区三区在线观看| 欧美日韩免费在线视频| 亚洲一区二区精品视频| 在线观看中文字幕不卡| 曰韩精品一区二区| 欧美影片第一页| 夜夜亚洲天天久久| 欧美日韩激情在线| 青青草精品视频| 日韩精品一区二区三区视频在线观看| 日产欧产美韩系列久久99| 日韩欧美亚洲一区二区| 韩国视频一区二区| 欧美极品另类videosde| 99免费精品在线| 亚洲九九爱视频| 欧美日韩一区二区三区四区 | 国产精品美女久久久久久久久 | 精品亚洲国产成人av制服丝袜 | 欧美国产一区二区| 99精品热视频| 一个色在线综合| 欧美高清你懂得| 狠狠色丁香婷婷综合久久片| 国产无人区一区二区三区| a亚洲天堂av| 亚洲成人久久影院| 日韩久久精品一区| 成熟亚洲日本毛茸茸凸凹| 亚洲图片激情小说| 欧美一区二区国产| 国产成人在线电影| 亚洲一区二区综合| 精品毛片乱码1区2区3区| 不卡的av中国片|