首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 双射(独特的自然数编码的goedel标号(代数)

双射(独特的自然数编码的goedel标号(代数)

  • 资源大小:4.58 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 编码 独特 标号 自然数 代数

资 源 简 介

A Scala package providing bijective Goedel numberings (ranking/unranking bijections to N) for members of a Term Algebra with an infinite supply of variables and functions symbols. The algorithms, using a generalized Cantor bijection between N and N^k (known to be polynomial in size of the representations) ensure that: a unique syntactically valid term is associated to each natural number a unique natural number is associated to each syntactically valid term either way, the bitsize of the representation of the output is proportional (up to a small constant) to the bitsize of the representation of the output For instance, terms like: F3(v3,F2(v2,F1(v1,v0,F1),F2),F3) F3(v3,F2(v2,F1(v1,v0,v0),F1(v1,v0,v0)),F2(v2,F1(v1,v0,v0),F1(v1,v0,v0))) are uniquely associated to Goedel numbers like 1166589096937670191 and 781830310066286008864372141041 of comparable representation size.
VIP VIP
0.166723s