Skip to content

This program checks if a code satisfies the prefix condition and tells us if it's instantaneously decodable

License

Notifications You must be signed in to change notification settings

sreekarchigurupati/instant-decodable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instant-decodable

Instantaneous decodability check

Prefix codes are also known as prefix-free codes, prefix condition codes and instantaneous codes.A prefix code is a uniquely decodable code: a receiver can identify each word without requiring a special marker between words. However, there are uniquely decodable codes that are not prefix codes; for instance, the reverse of a prefix code is still uniquely decodable (it is a suffix code), but it is not necessarily a prefix code.

This program checks if a code satisfies the prefix condition and tells us if it's instantaneously decodable.

Usage

Execute the program by typing in the following command. Where code is the name of the file containing the code.

python prefix.py code

About

This program checks if a code satisfies the prefix condition and tells us if it's instantaneously decodable

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages