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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:23:49+00:00 2026-05-30T21:23:49+00:00

I try to write C++ code to do radix sort for integer. After looking

  • 0

I try to write C++ code to do radix sort for integer. After looking at tutorial online, I found that we have to put each integer to the right bucket, start from the least significant figure. My question is, Do I need 10 buckets from 0 to 9 in normal algorithm for radix sort? If I assign those bucket as a linked list ( ex. *list1 ~~~ *list9), will it seems a little bit weird?

Thank you for your time. This is not a homework but just out of curiosity.

  • 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-30T21:23:51+00:00Added an answer on May 30, 2026 at 9:23 pm

    I don’t think this is a C++ question (although Radix Sort can clearly be implemented in C++) and it probably has nothing to do with linked lists, at least not in the way you seem to think about it it: The sorting happens on a per digit base where you have efficient access to the buckets for each digit. For this, a list wouldn’t work too well but a vector would. Inside each bucket you may use a list.

    As with respect to the number of buckets you need, the answer is: it depends! You can use any integral base which is bigger than 1 and you would need a corresponding number of buckets. Since computers are particularly good at computing powers of 2 using a power of 2 is probably more efficient than using other bases like 10 although 10 would also work. Oddly enough, Wikipedia’s article on Radix Sort uses base 10 – probably to avoid too much confusion about the free choice of bases.

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

Sidebar

Related Questions

I need to write a delegate function that can 'wrap' some while/try/catch code around
Personally, I try and write secure ASP.NET code. However, I have become quite paranoid
i try to write a code that show a rect in a blue frame:
My problem is that I have to write code to check if a customers
My problem is that I have to write code to check if a customers
I have a Ria service to call logic code. I want to write try
i write this code in main.java ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); try{ HttpClient httpclient
I try to lock a file and write to it with the code below:
When I try to open a file in write mode with the following code:
try to write a composite component that allows mutltiple text inputs. I read that

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.