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 3598926
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:18:13+00:00 2026-05-18T20:18:13+00:00

Given a clocked 3-level (-1,0,+1) channel between two devices, what is the most stream-efficient

  • 0

Given a clocked 3-level (-1,0,+1) channel between two devices, what is the most stream-efficient way to convert a stream of bits to and from the channel representation?

The current method is to take 3 binary bits, and convert into two trits. I believe this wastes 11% of the channel capability (since 1 out of 9 possible pairs is never used). I suspect grouping might reduce this waste, but this project is using 8-bit devices, so my group sizes are restricted.

I’d like to use divmod-3, but I don’t have the entire binary stream available at any one point. Is there a method for an ‘incremental’ divmod3 that can start at the LSB?

As an untrained guess, I speculate that there should be an approach of the form ‘analyze the next 3 bits, remove one bit, change one bit’ — but I haven’t been able to find something workable.

  • 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-05-18T20:18:14+00:00Added an answer on May 18, 2026 at 8:18 pm

    Try to pack 11 bits (2048 codes) into 7 trits (2187 codes), you’ll get less than 1% of overhead. There are several methods. First one is straightforward: the lookup table. Second is divmod-3. Third is some bit/trit mainpulation like below.

    First stage: pack first 9 bits using 3-bit-to-2-trit scheme:

    abc def ghi jk => mn pq rs jk (mn, pq, rs are trit pairs)
    
    bits   trits
    0ab -> ab
    10a -> Za
    11a -> aZ (i'll use Z is for -1 for compactness)
    

    state ZZ will be used futher

    Second stage: using more complex logic to pack 6 trits and 2 bits into 7 trits:

    mn pq rs 0k -> mn pq rs k
    mn pq rs 10 -> mn pq rs Z
    mn pq rZ 11 -> mn pq ZZ r
    mn pq r0 11 -> mn ZZ pq r
    mn pq r1 11 -> ZZ mn pq r
    

    Unused codes would be:

    ZZ ZZ xx x
    ZZ xx ZZ x
    xx ZZ ZZ x
    

    UPD another suitable packing relations are 19b -> 11t (~0.1% overhead), 84b -> 53t (~0,0035% overhead), but is seems to be overshoot.

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

Sidebar

Related Questions

No related questions found

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.