斐波那契编码

发布于 2024-07-09 05:30:51 字数 318 浏览 6 评论 0原文

任何人都可以推荐一本关于整数的通用代码,特别是斐波那契代码的好书/论文/网站/背景阅读(在http://en.wikipedia.org/wiki/Fibonacci_code)? 谢谢!

编辑:感谢您迄今为止的回答和有用的链接! 如果我没有完全清楚地表达自己,我很抱歉:我不是在询问生成或计算斐波那契数的代码(如编写程序),而是询问使用的特定代码(如编码或压缩数据)斐波那契数列。

Can anybody suggest a good book/paper/website/background reading about universal codes for integers and especially Fibonacci code (in the sense of http://en.wikipedia.org/wiki/Fibonacci_code)? Thanks!

Edit: Thanks for the answers and the useful links so far! I am sorry if I have not made myself completely clear: I am not asking about code (as in writing a program) to generate or compute Fibonacci numbers, but about a particular code (as in encoding, or compressing, data) that makes use of Fibonacci numbers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

可遇━不可求 2024-07-16 05:30:51

通过 Google Scholar 找到的一篇论文:

  • 数据压缩(DA Lelewer,DS Hirschberg - ACM 计算调查(CSUR),1987)

我不太熟悉主题,但从简短的外观来看,这篇文章似乎相当不错。

One paper found with Google Scholar :

  • Data compression (DA Lelewer, DS Hirschberg - ACM Computing Surveys (CSUR), 1987)

I'm not so familiar with the subject but the article seems to be pretty decent by a brief looking.

遇到 2024-07-16 05:30:51

信息论、推理和学习算法关于代码的章节。 它有一个免费的 pdf 版本,请查看。

Information Theory, Inference, and Learning Algorithms has a chapter on codes. It has a free pdf version, check it out.

当梦初醒 2024-07-16 05:30:51

我发现麻省理工学院的在线讲座总体来说是一个很好的资源。 他们详细介绍了斐波那契算法:http:// www.catonmat.net/blog/mit-introduction-to-algorithms-part-two/

视频的相关片段:

[17:49] 计算斐波那契数的算法( FB)。
[19:04] 用于计算 FB 的朴素递归算法(指数时间)。
[22:45] 用于计算 FB 的自下而上算法。
[24:25] FB 的朴素递归平方算法(由于浮点舍入错误而不起作用)。
[27:00] FB 的递归平方算法。

I find MIT's online lectures to be a good resource generally. And they address Fibonacci algorithms in some detail: http://www.catonmat.net/blog/mit-introduction-to-algorithms-part-two/

Relevant segments of the video:

[17:49] Algorithms for computing Fibonacci numbers (FBs).
[19:04] Naive recursive algorithm (exponential time) for computing FBs.
[22:45] Bottom-up algorithm for computing FBs.
[24:25] Naive recursive squaring algorithm for FBs (doesn’t work because of floating point rounding errors).
[27:00] Recursive squaring algorithm for FBs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文