突破n3障碍:更快的对象类型推断

F. Henglein
{"title":"突破n3障碍:更快的对象类型推断","authors":"F. Henglein","doi":"10.1002/(SICI)1096-9942(199901/03)5:1<57::AID-TAPO5>3.0.CO;2-U","DOIUrl":null,"url":null,"abstract":"Abadi and Cardelli [1] present a series of type systems for their object calculi, four of which are first-order. Palsberg [22] has shown how typability in each one of these systems can be decided in time O(n3) and space O(n2), where n is the size of an untyped object expression, using an algorithm based on dynamic transitive closure. \n \n \n \nIn this paper we improve each one of the four type inference problems from O(n3) to the following time complexities: [see article pdf to view table] \n \n \n \nFurthermore, our algorithms improve the space complexity from O(n2) to O(n) in each case. \n \n \n \nThe key ingredient that lets us “beat” the worst-case time and space complexity induced by general dynamic transitive closure or similar algorithmic methods is that object subtyping, in contrast to record subtyping, is invariant: an object type is a subtype of a “shorter” type with a subset of the method names if and only if the common components have equal types. © 1999 John Wiley & Sons, Inc.","PeriodicalId":293061,"journal":{"name":"Theory Pract. Object Syst.","volume":"4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"16","resultStr":"{\"title\":\"Breaking Through the n3 Barrier: Faster Object Type Inference\",\"authors\":\"F. Henglein\",\"doi\":\"10.1002/(SICI)1096-9942(199901/03)5:1<57::AID-TAPO5>3.0.CO;2-U\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Abadi and Cardelli [1] present a series of type systems for their object calculi, four of which are first-order. Palsberg [22] has shown how typability in each one of these systems can be decided in time O(n3) and space O(n2), where n is the size of an untyped object expression, using an algorithm based on dynamic transitive closure. \\n \\n \\n \\nIn this paper we improve each one of the four type inference problems from O(n3) to the following time complexities: [see article pdf to view table] \\n \\n \\n \\nFurthermore, our algorithms improve the space complexity from O(n2) to O(n) in each case. \\n \\n \\n \\nThe key ingredient that lets us “beat” the worst-case time and space complexity induced by general dynamic transitive closure or similar algorithmic methods is that object subtyping, in contrast to record subtyping, is invariant: an object type is a subtype of a “shorter” type with a subset of the method names if and only if the common components have equal types. © 1999 John Wiley & Sons, Inc.\",\"PeriodicalId\":293061,\"journal\":{\"name\":\"Theory Pract. Object Syst.\",\"volume\":\"4 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1900-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"16\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Theory Pract. Object Syst.\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1002/(SICI)1096-9942(199901/03)5:1<57::AID-TAPO5>3.0.CO;2-U\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theory Pract. Object Syst.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/(SICI)1096-9942(199901/03)5:1<57::AID-TAPO5>3.0.CO;2-U","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 16

摘要

Abadi和Cardelli[1]给出了他们的对象演算的一系列类型系统,其中四个是一阶的。Palsberg[22]展示了如何使用基于动态传递闭包的算法,在时间O(n3)和空间O(n2)中决定这些系统中的可类型性,其中n是无类型对象表达式的大小。在本文中,我们将四种类型推理问题中的每一个从O(n3)提高到以下时间复杂度:[见文章pdf查看表]此外,我们的算法在每种情况下将空间复杂度从O(n2)提高到O(n)。让我们“战胜”由一般动态传递闭包或类似算法方法引起的最坏情况的时间和空间复杂性的关键因素是,与记录子类型相比,对象子类型是不变的:当且仅当公共组件具有相同类型时,对象类型是具有方法名子集的“较短”类型的子类型。©1999 John Wiley & Sons, Inc
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Breaking Through the n3 Barrier: Faster Object Type Inference
Abadi and Cardelli [1] present a series of type systems for their object calculi, four of which are first-order. Palsberg [22] has shown how typability in each one of these systems can be decided in time O(n3) and space O(n2), where n is the size of an untyped object expression, using an algorithm based on dynamic transitive closure. In this paper we improve each one of the four type inference problems from O(n3) to the following time complexities: [see article pdf to view table] Furthermore, our algorithms improve the space complexity from O(n2) to O(n) in each case. The key ingredient that lets us “beat” the worst-case time and space complexity induced by general dynamic transitive closure or similar algorithmic methods is that object subtyping, in contrast to record subtyping, is invariant: an object type is a subtype of a “shorter” type with a subset of the method names if and only if the common components have equal types. © 1999 John Wiley & Sons, Inc.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
The Electronic Library Project: SGML Document Management System Based on ODBMS A Performance Study of Object Database Management Systems Building CORBA Applications with an Object Database System Object Management for a Visual Data Analysis Tool In the Trenches with ObjectStore
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1