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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:36:46+00:00 2026-05-20T00:36:46+00:00

I am working on a phonebook application where I want to sort the nodes

  • 0

I am working on a phonebook application where I want to sort the nodes that represent each entry according to the name of the client. I want to use bucket sort algorithm where I have two arrays of the linked list’s structures.

The catch is that I do not want to use deletion and construction to move the nodes through the buckets.

Is there an easier way, using pointers? Moving the pointers through the buckets might be much easier, but I don’t have any idea about how to implement it. I’m doing this in C, but help in any other language is welcome.

I appreciate your help.

  • 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-20T00:36:46+00:00Added an answer on May 20, 2026 at 12:36 am

    This really depends on how the entries are stored. If you’re storing each entry in a linked list cell, then you can do bucket sort with only a constant memory overhead by just moving the elements out of the original list and into the buckets. This will require you to use pointers and pointer rewiring, but it’s not nearly as difficult as it sounds. You’ll just be splicing the cells out of the main list and into the buckets for the sort.

    One question – is there a reason that you want to use bucket sort to sort names? You can sort strings using bucket sort, but to do so you’ll almost certainly need more than two buckets; probably you’d have one for each letter of the alphabet and one for “there are no letters here.” If you have a linked list, you may want to consider investigating merge sort as a possibility, since it’s not too difficult to implement and has excellent runtime guarantees.

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

Sidebar

Related Questions

I want to send a SMS from my application. For that,i use MFMessageComposeViewController and
Working with C#. I have an abstract class that I use to read/write settings
So recently I have been working on phonebook project that uses Binary Search Tree.
Working with an API that can handle multiple connections (i.e. sessions), each of these
I am working on a Default phonebook contacts application, In my app i m
Working on a tiny script that references data between users. Each user has a
I'm still working on my phone book app and I want to update a
Working with an undisclosed API, I found a function that can set the number
I'm working on a simple XML phonebook app to learn JQuery, and I can't
Working with stl:list and stl::vector types under interrupt handlers I want to avoid malloc()

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.