我需要在C#中使用Haffman代码

编程入门 行业动态 更新时间:2024-10-23 17:31:52
本文介绍了我需要在C#中使用Haffman代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我需要霍夫曼编码算法,以便您可以在这张照片中看到.文件应为2D数组.用户的体重和性格被带入2D数组. 请帮帮我. en.wikipedia/wiki/File:Huffman_huff_demo.gif

Hi I need to Huffman Code Algorithm for me so that you can see in this picture. File should be a 2D array. The weight and character of the user is taken to a 2D array. Please help me. en.wikipedia/wiki/File:Huffman_huff_demo.gif

推荐答案

您是希望我们为您撰写这篇文章时还是引用它,还是希望您自己编写并仅向我们寻求免费帮助? Would you like us to quote on writing this for you, or would yo prefer to write it yourself and just ask us for free help ?

要想取得任何成果,您确实需要付出一些努力. 我非常确定您已经知道在哪里可以找到该算法的完整说明: en.wikipedia/wiki /Huffman_coding [^ ].本文包含许多指向该算法的实现的Web链接:C,Python. 本文提供了27种语言(!)的实现: rosettacode/wiki/Huffman_codes [ ^ ]. 某些实现看起来与C#非常相似:尤其是Java,或多或少的C ++,Ada(外观不同,但从本质上讲,它们与算术运算符的定义非常接近).算法本身非常简单,特别是当它以如此详细的方式向您解释时.那么,还有什么问题呢?使用可用示例在C#中实现?但是你有什么用呢?我认为没有人会为您做这项工作感兴趣.这里最感兴趣的人是你.付出一些努力并取得结果.
—SA
You really need to put some effort in your work if you want to get any results. I''m pretty much sure you already know where to find complete description of the algorithm: en.wikipedia/wiki/Huffman_coding[^]. This article includes many good Web links to implementations of the algorithm: C, Python. This article provides implementations in 27 languages (!): rosettacode/wiki/Huffman_codes[^]. Some of the implementation will look very similar to C#: especially Java, more or less C++, Ada (looks different but essentially very close as definitions of arithmetic operators are used). Algorithm itself is quite simple, especially when it''s explained to you in such a detailed way. So, what''s remaining problem? Implementation in C# using available samples? But what are you good for? I don''t think anyone would be interested enough to do this work for you. The most interested person here is you. Put some effort and have the result.
—SA

更多推荐

我需要在C#中使用Haffman代码

本文发布于:2023-11-07 22:45:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567642.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   Haffman

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!