Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:43:44+00:00 2026-06-06T04:43:44+00:00

I want to choose a encoding scheme for data storage. I have very low

  • 0

I want to choose a encoding scheme for data storage. I have very low available memory. which coding should be best to optimally utilize available space.
ANSI, UTF or any other..

Data is the Capital Alphabetics

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:43:46+00:00Added an answer on June 6, 2026 at 4:43 am

    If you know the frequency distribution of letters, Huffman Coding is a good balance between complexity, speed and efficiency.

    If you don’t know the distribution of letters or they are random, just store them 5 bits at a time. For example, consider the string “ABCDE”. The letter numbers are 0, 1, 2, 3, 4. Converted to binary, this is:

    00000 00001 00010 00011 00100
    

    Now you just group every 8 bits into bytes:

    00000000 01000100 00110010 0xxxxxxx
    

    You need to store the length too, so that you know that there is no useful data in the last byte’s 7 bits.

    If code space is of no concern and you just want to pack the strings as well as you can, you could use Huffman coding or Arithmetic coding even with a uniform frequency distribution to pack each character into log2(26) bits on average, which is slightly less than 5 (namely, 4.7 bits).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app with which I want to choose photo or video from
I have a vector/array of n elements. I want to choose m elements. The
In some code I want to choose n random numbers in [0,1) which sum
I want choose all the <li> in my html that have the <span>Google Map</span>
I have an array of 7 numbers (1,2,3,4,5,6,7) and I want to choose 5
I want to choose an image formate for including images in both html and
I want to choose random numbers within a range of numbers, but with weighting
I'm setting up a new project and I want to choose a license that
I've learned several languages, but now I want to choose one. The language that
Similar question , but for Oracle. Why would I not always want to choose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.