920是什么意思| 梦见家里死人了代表什么预兆| 眼压高是什么意思| 淋巴滤泡增生是什么意思| 苹果不能和什么一起吃| 肾结石为什么会疼| 无中生有是什么生肖| 双肾小结石是什么意思| 违心的话是什么意思| 盆腔积液是什么症状| 怎么知道自己是什么血型| 小腿肚子疼是什么原因| 华盖是什么意思| 阳历10月是什么星座| 真菌是什么原因引起的| 大姨妈一直不干净是什么原因| 阳虚吃什么调理| 狗狗可以吃什么水果| 法院起诉离婚需要什么材料| 积液是什么原因造成的| 低钾是什么原因引起的| 7.17什么星座| 局级干部是什么级别| 偷鸡不成蚀把米是什么生肖| 心病是什么意思| 什么叫种植牙| edo是什么意思| 痞闷什么意思| 死海是什么| 为什么怀孕前三个月不能说| 11月9日什么星座| 胃食管反流咳嗽吃什么药| 龟头炎用什么药好| 铁剂是什么| 波比跳是什么| 乙型肝炎核心抗体阳性是什么意思| 孕妇低血压什么补最快| 脸上爱长痘痘是什么原因| 甲状腺结节不能吃什么| 原字五行属什么| 手抖吃什么药| 乙肝235阳性是什么意思| 分泌多巴胺是什么意思| 黄精吃了有什么好处| 10月生日是什么星座| 预后是什么意思| 屁股疼挂什么科室| 一什么瀑布| 吃什么能长高| 女生肚子疼是什么原因| 睡觉磨牙什么原因| 脂溢性脱发是什么原因引起的| 夏天什么面料最凉快| 昱怎么读音是什么| 精字五行属什么| 身体抱恙是什么意思| 来例假肚子疼是什么原因| 手足口病疫苗什么时候打| 送妈妈什么礼物好| 狗狗感冒吃什么药| 肾炎吃什么好| 红斑狼疮是什么| 把尿是什么意思| 腿抽筋吃什么钙片好| 湿热吃什么| 用盐洗头发有什么好处| 脸色暗沉发黑是什么原因| 天山童姥练的什么武功| 气血不通吃什么药| 怀孕初期要注意什么| 虫草适合什么人吃| 肾功能挂什么科| 整个后背疼是什么原因| 文盲是什么意思| 就这样吧是什么意思| 灰指甲是什么样子的| 晨勃消失是什么原因| 姨妈推迟是什么原因| 什锦菜是什么菜| 阑尾炎吃什么| 慢性胃炎吃什么药好| 漫字五行属什么| 逼宫什么意思| 牙周炎吃什么药最有效| 一般什么人戴江诗丹顿| 侧重点是什么意思| 什么中生什么| microsd卡是什么卡| 胆疼是什么原因| 双鱼座有什么特点| et是什么| 爱无能是什么意思| 桃子不能和什么水果一起吃| 身上经常出汗是什么原因| 尿潜血阳性是什么意思| 月经提前量少是什么原因| 玉竹有什么功效| 有什么好听的网名| 甲状腺功能三项查什么| 药物制剂是干什么的| 血压高压低是什么原因| 梦见修路是什么预兆| 内容是什么意思| 汉防己甲素片治什么病| 乌龟吃什么| 朝鲜战争的起因是什么| 为什么手心总是出汗| 7月24日什么星座| 小孩子为什么会得抽动症| 鳖是什么动物| 蝴蝶代表什么生肖| 尿突然是红褐色的是什么问题| 直肠炎吃什么药| 处女男和什么星座最配| 免疫组化是什么| 什么样的白带是怀孕了| 天体是什么| 头孢克肟和头孢拉定有什么区别| 泡热水脚有什么好处| 哭笑不得是什么意思| 红细胞高是什么意思| 冥想有什么好处| 子宫内膜是什么| 牙周炎吃什么药好| 老想睡觉是什么原因| 银花有焰万家春是什么生肖| aids是什么病的简称| 长大做什么| 睡觉就做梦是什么原因| 穿云箭是什么意思| 客观是什么意思| 气胸是什么病是大病吗| 副脾结节是什么意思| 穿匡威的都是什么人| 幽默是什么意思| 98年属虎的是什么命| 礼五行属什么| 气压治疗是什么| 为什么睡觉会磨牙| 为什么qq| 什么国家的钱最值钱| 过年是什么时候| 日间病房是什么意思| 头痒用什么洗头可以止痒| 乳清是什么| 脂肪肝吃什么药| 什么荔枝最贵| 肝硬化吃什么水果好| 脖子短适合什么发型| 香港是什么时候回归的| 清考是什么意思| 喉咙里痰多是什么原因| 妙曼是什么意思| 视力模糊是什么原因引起的| 肝阳上亢吃什么中成药| 皮肤感染吃什么消炎药| 脑电图异常是什么病| 牛奶什么时候喝| 吃糖醋蒜有什么好处和坏处| 保健是什么意思| 初一的月亮是什么形状| 胃窦糜烂是什么意思| 光圈是什么| 什么的枝干| 糖类抗原125偏高说明什么| clean什么意思| 喝什么茶叶减肥效果最好| 底细是什么意思| 什么是胃肠型更年期| 三叉神经痛吃什么药好| 寒湿吃什么中成药| 不懂事是什么意思| 不忘初心方得始终是什么意思| 脖子爱出汗是什么原因| 巴斯光年是什么意思| 籺是什么意思| 十九岁属什么| 水母吃什么食物| 张的五行属性是什么| 剁椒鱼头是什么鱼| 右脸突然肿了是什么原因| 1952属什么生肖| 第一个月怀孕有什么反应| 低血糖吃什么水果| 防风通圣颗粒治什么病| 夏吃姜有什么好处| 梦见抽血是什么预兆| 乙酸是什么| 菠萝蜜什么季节最好吃| 返祖现象什么意思| 当我谈跑步时我谈些什么| 糖筛和糖耐有什么区别| 23数字代表什么意思| 单宁是什么| 囊肿挂什么科| 沈阳有什么特产| vb6是什么药| reading是什么意思| 什么是数字化| 小孩咬人是什么原因| 安全期是什么| 吃什么能长胖| 心热是什么原因造成的| 顺理成章是什么意思| 小肚子一直疼是什么原因| 蜱虫是什么虫| 抗体是指什么| 核磁是检查什么的| 午时是什么时候| 十二月七号是什么星座| 钠是什么东西| 1983年五行属什么| 深海鱼都有什么鱼| 芹菜和什么不能一起吃| 乳头痒是什么原因| 什么争什么斗| 梦见狗咬自己是什么意思| 篮板是什么意思| 堃读什么| 宫颈纳氏囊肿是什么意思严重吗| 心肌缺血是什么意思| 从容面对是什么意思| 尿床去医院挂什么科| 低钾是什么原因造成的| 为什么冬天容易长胖| 海淘是什么意思啊| 哦是什么意思在聊天时| 怀孕初期吃什么食物好| 什么是糖化血红蛋白| 读书与吃药是什么生肖| r医学是什么意思| 讳莫如深是什么意思| 田加比念什么| 卑劣是什么意思| 晚上1点是什么时辰| 腹腔积水是什么原因造成的| 喉癌是什么原因引起的| 风湿性关节炎用什么药效果好| 男人吃鸽子有什么好处| 做护士需要什么条件| 看脑部挂什么科| 股票尾盘拉升说明什么| 奶嚼口是什么| 尿液中粘液丝高是什么原因| 一什么毛驴| 做梦梦到狗是什么征兆| img什么意思| 烛光晚餐是什么意思| 酱油什么时候发明的| cbd是什么| 手掌疼是什么原因| 脚心出汗是什么原因| 得了阴虱用什么药能除根| 他是什么意思| on是什么牌子| qs是什么| 关羽的武器叫什么| 传度是什么意思| 湿疹是什么| 什么是什么的家| 吃什么能增强免疫力| 吃酒酿有什么好处| 梦见自己刷牙是什么意思| 科级干部是什么级别| 百度Jump to content

浴火重生的四川汶川映秀镇(1)

From Wikipedia, the free encyclopedia
百度 在抗战初期的1937年,就有295人申请参加抗战工作。

In computer science, run-time algorithm specialization is a methodology for creating efficient algorithms for costly computation tasks of certain kinds. The methodology originates in the field of automated theorem proving and, more specifically, in the Vampire theorem prover project.

The idea is inspired by the use of partial evaluation in optimising program translation. Many core operations in theorem provers exhibit the following pattern. Suppose that we need to execute some algorithm in a situation where a value of is fixed for potentially many different values of . In order to do this efficiently, we can try to find a specialization of for every fixed , i.e., such an algorithm , that executing is equivalent to executing .

The specialized algorithm may be more efficient than the generic one, since it can exploit some particular properties of the fixed value . Typically, can avoid some operations that would have to perform, if they are known to be redundant for this particular parameter . In particular, we can often identify some tests that are true or false for , unroll loops and recursion, etc.

Difference from partial evaluation

[edit]

The key difference between run-time specialization and partial evaluation is that the values of on which is specialised are not known statically, so the specialization takes place at run-time.

There is also an important technical difference. Partial evaluation is applied to algorithms explicitly represented as codes in some programming language. At run-time, we do not need any concrete representation of . We only have to imagine when we program the specialization procedure. All we need is a concrete representation of the specialized version . This also means that we cannot use any universal methods for specializing algorithms, which is usually the case with partial evaluation. Instead, we have to program a specialization procedure for every particular algorithm . An important advantage of doing so is that we can use some powerful ad hoc tricks exploiting peculiarities of and the representation of and , which are beyond the reach of any universal specialization methods.

Specialization with compilation

[edit]

The specialized algorithm has to be represented in a form that can be interpreted.

In many situations, usually when is to be computed on many values of in a row, can be written as machine code instructions for a special abstract machine, and it is typically said that is compiled. The code itself can then be additionally optimized by answer-preserving transformations that rely only on the semantics of instructions of the abstract machine.

The instructions of the abstract machine can usually be represented as records. One field of such a record, an instruction identifier (or instruction tag), would identify the instruction type, e.g. an integer field may be used, with particular integer values corresponding to particular instructions. Other fields may be used for storing additional parameters of the instruction, e.g. a pointer field may point to another instruction representing a label, if the semantics of the instruction require a jump. All instructions of the code can be stored in a traversable data structure such as an array, linked list, or tree.

Interpretation (or execution) proceeds by fetching instructions in some order, identifying their type, and executing the actions associated with said type.

In many programming languages, such as C and C++, a simple switch statement may be used to associate actions with different instruction identifiers. Modern compilers usually compile a switch statement with constant (e.g. integer) labels from a narrow range by storing the address of the statement corresponding to a value in the -th cell of a special array, as a means of efficient optimisation. This can be exploited by taking values for instruction identifiers from a small interval of values.

Data-and-algorithm specialization

[edit]

There are situations when many instances of are intended for long-term storage and the calls of occur with different in an unpredictable order. For example, we may have to check first, then , then , and so on. In such circumstances, full-scale specialization with compilation may not be suitable due to excessive memory usage. However, we can sometimes find a compact specialized representation for every , that can be stored with, or instead of, . We also define a variant that works on this representation and any call to is replaced by , intended to do the same job faster.

See also

[edit]

References

[edit]

Further reading

[edit]
一惊一乍是什么意思 大耳读什么 粑粑黑色是什么原因 广州为什么叫羊城 饮料喝多了有什么危害
丹参滴丸治什么病 为什么脚上会长鸡眼 微信拉黑和删除有什么区别 4月18号是什么星座 吃什么补蛋白
梦见蛇和老鼠是什么意思 什么程度才需要做胃镜 财星是什么意思 护理部是干什么的 什么是菜花状疣图片
茄子吃多了有什么坏处 不亚于是什么意思 不将就什么意思 眼睛近视缺什么维生素 很low是什么意思
弱水是什么意思xinmaowt.com 建成区是什么意思cl108k.com design是什么牌子hcv9jop6ns0r.cn 驻马店古代叫什么hcv8jop8ns5r.cn 高育良什么级别gysmod.com
宫颈息肉不切除有什么危害hcv9jop3ns5r.cn 咽颊炎吃什么药hcv9jop5ns3r.cn 进仓是什么意思hcv9jop3ns3r.cn 眼睛疼吃什么药效果最好hcv9jop3ns9r.cn 处女座女和什么星座最配hcv8jop2ns1r.cn
龋齿和蛀牙有什么区别hcv9jop2ns1r.cn 镜花水月是什么意思hcv7jop5ns6r.cn pn医学上是什么意思hcv9jop6ns7r.cn 脚脱皮用什么药膏hcv8jop3ns0r.cn com什么意思hcv8jop8ns8r.cn
包饺子用什么面粉hcv8jop1ns3r.cn 肝经不通吃什么中成药hcv7jop6ns3r.cn 八月三日是什么星座hcv9jop4ns0r.cn 肾衰竭是什么症状clwhiglsz.com 怀孕一个月出血是什么情况hcv8jop0ns9r.cn
百度