Code Monkey home page Code Monkey logo

udc's Introduction

UDC(唯一可译码判决准则)

  • 实验目的

熟悉唯一可译码判决准则,掌握字符串处理程序的设计和调试技术。

  • 实验要求

已知:信源符号个数r、码字集合C。 输入:任意的一个码。码字个数和每个具体的码字在运行时从键盘输入。 输出:判决(是唯一可译码/不是唯一可译码)。

  • 实验原理

1、考查中所有的码字,若 的前缀,则将相应的后缀作为一个尾随后缀码放入集合 中;

2、考察两个集合,若 的前缀或 的前缀,则将相应的 后缀作为尾随后缀码放入集合 中;

3、 即为码的尾随后缀集合;

4、若中出现了 中的元素,算法终止,返回假( 不是唯一可译码);否则若 中没有出现新的元素,则返回真。

udc's People

Contributors

nfe-w avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.